From bf0cfa5b46263b202aceb4d4e2fd000e87d4c96f Mon Sep 17 00:00:00 2001 From: Chen Date: Tue, 14 Jul 2020 16:37:22 +0800 Subject: [PATCH] hot fix for building static lib (#1203) Fix #1197 --- src/lib_json/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/CMakeLists.txt b/src/lib_json/CMakeLists.txt index cea92ef..af26476 100644 --- a/src/lib_json/CMakeLists.txt +++ b/src/lib_json/CMakeLists.txt @@ -169,7 +169,7 @@ if(BUILD_STATIC_LIBS) set_target_properties(${STATIC_LIB} PROPERTIES INSTALL_RPATH "@loader_path/.") endif() - target_compile_features(${SHARED_LIB} PUBLIC ${REQUIRED_FEATURES}) + target_compile_features(${STATIC_LIB} PUBLIC ${REQUIRED_FEATURES}) if(NOT CMAKE_VERSION VERSION_LESS 2.8.11) target_include_directories(${STATIC_LIB} PUBLIC