mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Fix make.sh install unwanted config files
This commit is contained in:
parent
39853e5148
commit
3442b36672
@ -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
|
||||||
|
install(FILES ${PROJECT_BINARY_DIR}/cJSONConfig.cmake
|
||||||
${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake
|
${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake
|
||||||
DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/cmake/cJSON")
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user