From: Sayan Bandyopadhyay Date: Fri, 22 Oct 2021 07:57:05 +0000 (-0700) Subject: fix: for issue #569, now use the guard to turn it off (#617) X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=b9eff8b02afd0e2612b695fb8d67d56839b126ce;p=0xmirror%2FcJSON.git fix: for issue #569, now use the guard to turn it off (#617) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7aecd98..03c9716 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,7 +255,11 @@ if(ENABLE_CJSON_TEST) endif() #Create the uninstall target -add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${PROJECT_SOURCE_DIR}/library_config/uninstall.cmake") +option(ENABLE_CJSON_UNINSTALL "Enable creating uninstall target" ON) +if(ENABLE_CJSON_UNINSTALL) + add_custom_target(uninstall "${CMAKE_COMMAND}" -P + "${PROJECT_SOURCE_DIR}/library_config/uninstall.cmake") +endif() # Enable the use of locales option(ENABLE_LOCALES "Enable the use of locales" ON)