From b66ed3e43c058c4e8388c1af38c70e9cab0e07de Mon Sep 17 00:00:00 2001 From: Sheng Di Date: Mon, 25 Mar 2019 12:46:48 -0500 Subject: [PATCH] revise CMakeLists.txt to enable SZ to be compiled on Cray systems such as Cori by cmake --- sz/CMakeLists.txt | 3 +-- zlib/CMakeLists.txt | 2 +- zstd/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sz/CMakeLists.txt b/sz/CMakeLists.txt index a42a2f0f..477d0dfc 100644 --- a/sz/CMakeLists.txt +++ b/sz/CMakeLists.txt @@ -6,5 +6,4 @@ target_compile_options(SZ PRIVATE $<$:-O3 -Wall -Wextra -Wpedantic -Wno-unused-parameter> ) -install (TARGETS SZ LIBRARY DESTINATION lib) - +install (TARGETS SZ LIBRARY DESTINATION lib ARCHIVE DESTINATION lib ) diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt index ba9aafba..204c0f16 100644 --- a/zlib/CMakeLists.txt +++ b/zlib/CMakeLists.txt @@ -3,4 +3,4 @@ aux_source_directory(. zlib_sources) add_library (zlib SHARED ${zlib_sources}) target_link_libraries (zlib ${zlib_dependencies}) -install (TARGETS zlib LIBRARY DESTINATION lib) +install (TARGETS zlib LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) diff --git a/zstd/CMakeLists.txt b/zstd/CMakeLists.txt index ee24cfd1..12522813 100644 --- a/zstd/CMakeLists.txt +++ b/zstd/CMakeLists.txt @@ -37,4 +37,4 @@ set(zstd_sources add_library (zstd SHARED ${zstd_sources}) target_link_libraries (zstd ${zstd_dependencies}) -install (TARGETS zstd LIBRARY DESTINATION lib) +install (TARGETS zstd LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)