From 856c7cb544a8122b8c9e7e9063d077a587da9913 Mon Sep 17 00:00:00 2001 From: Bingran Hu Date: Thu, 12 Dec 2024 01:57:32 -0500 Subject: [PATCH] Update TODO --- components/core/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/core/CMakeLists.txt b/components/core/CMakeLists.txt index 9d0c51c9f..3b5f9aff4 100644 --- a/components/core/CMakeLists.txt +++ b/components/core/CMakeLists.txt @@ -228,8 +228,10 @@ else() endif() # Find and setup LZMA Library -# TODO: Add support to enforce static linking against LZMA when desired. For a hack, we can set -# `CMAKE_FIND_LIBRARY_SUFFIXES` to ask CMake to prefer the static lib over the shared one. +# TODO: Add a script in ./cmake/Modules to properly import LZMA in find_package()'s module mode +if(CLP_USE_STATIC_LIBS) + set(LibLZMA_USE_STATIC_LIBS ON) +endif() find_package(LibLZMA REQUIRED) if(LIBLZMA_FOUND) message(STATUS "Found Lzma ${LIBLZMA_VERSION_STRING}")