]> git.feebdaed.xyz Git - 0xmirror/cJSON.git/commitdiff
fix: for issue #569, now use the guard to turn it off (#617)
authorSayan Bandyopadhyay <sabandyopadh@cs.stonybrook.edu>
Fri, 22 Oct 2021 07:57:05 +0000 (00:57 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 07:57:05 +0000 (15:57 +0800)
CMakeLists.txt

index 7aecd98e4c4d118f9e83788daa9f9a054c1986b9..03c97167bb0bf78137a28ef709465cffdbe80615 100644 (file)
@@ -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)