hot fix for building static lib (#1203)

Fix #1197
This commit is contained in:
Chen 2020-07-14 16:37:22 +08:00 committed by GitHub
parent cfc1ad72ad
commit bf0cfa5b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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