Merge pull request #465 from Summus-git/fix_make_install_config

Make install unwanted config files
This commit is contained in:
Alan Wang 2020-05-05 11:31:39 +08:00 committed by GitHub
commit 43f471bff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,10 +223,12 @@ configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/library_config/cJSONConfigVersion.cmake.in" "${CMAKE_CURRENT_SOURCE_DIR}/library_config/cJSONConfigVersion.cmake.in"
${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake @ONLY) ${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake @ONLY)
# Install package config files if(ENABLE_TARGET_EXPORT)
install(FILES ${PROJECT_BINARY_DIR}/cJSONConfig.cmake # Install package config files
${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake install(FILES ${PROJECT_BINARY_DIR}/cJSONConfig.cmake
DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/cJSON") ${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake
DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/cJSON")
endif()
option(ENABLE_CJSON_TEST "Enable building cJSON test" ON) option(ENABLE_CJSON_TEST "Enable building cJSON test" ON)
if(ENABLE_CJSON_TEST) if(ENABLE_CJSON_TEST)