From d812fdaf0d852920a4be891d272444c0785b0333 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 3 Mar 2022 13:11:33 +0800 Subject: [PATCH] update --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62fd8ea..f713eb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,8 +102,10 @@ endif() if (NOT MSVC) target_link_libraries(utils m) endif() -if (WIN32) - target_link_libraries(utils shell32) +if (INSTALL_DEP_FILES) + if (WIN32) + target_link_libraries(utils shell32) + endif() endif() if (ENABLE_CXX17) target_compile_features(utils PRIVATE cxx_std_17)