Skip to content

Commit

Permalink
CMake: Hide uninstall target unless YAML_CPP_INSTALL is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Sep 25, 2023
1 parent cf3a8b2 commit bd352b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -199,7 +199,7 @@ if (YAML_CPP_FORMAT_SOURCE AND YAML_CPP_CLANG_FORMAT_EXE)
endif()

# uninstall target
if(NOT YAML_CPP_DISABLE_UNINSTALL AND NOT TARGET uninstall)
if(YAML_CPP_INSTALL AND NOT YAML_CPP_DISABLE_UNINSTALL AND NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
Expand Down

0 comments on commit bd352b2

Please sign in to comment.