From 90c598f089efd47a797e52de719d5079395e5efb Mon Sep 17 00:00:00 2001 From: Varunram Date: Sun, 18 Mar 2018 15:48:58 +0530 Subject: [PATCH] Add missing checks to CMakeLists;closes #1023 --- build/cmake/lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt index 945fdb922..2b11226d8 100644 --- a/build/cmake/lib/CMakeLists.txt +++ b/build/cmake/lib/CMakeLists.txt @@ -122,14 +122,14 @@ ENDIF (MSVC) # Add multi-threading support definitions -IF (ZSTD_MULTITHREAD_SUPPORT) +IF (ZSTD_MULTITHREAD_SUPPORT AND ZSTD_BUILD_SHARED AND ZSTD_BUILD_STATIC) SET_PROPERTY(TARGET libzstd_shared libzstd_static APPEND PROPERTY COMPILE_DEFINITIONS "ZSTD_MULTITHREAD") IF (UNIX) TARGET_LINK_LIBRARIES(libzstd_shared ${THREADS_LIBS}) TARGET_LINK_LIBRARIES(libzstd_static ${THREADS_LIBS}) ENDIF () -ENDIF (ZSTD_MULTITHREAD_SUPPORT) +ENDIF (ZSTD_MULTITHREAD_SUPPORT AND ZSTD_BUILD_SHARED AND ZSTD_BUILD_STATIC) # With MSVC static library needs to be renamed to avoid conflict with import library IF (MSVC) -- 2.47.2