Skip to content

Commit

Permalink
[cmake] Fix uninstall failure when no config is specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-stasse committed Sep 4, 2023
1 parent cce9aa8 commit cf58b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uninstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ endmacro(_SETUP_PROJECT_UNINSTALL)
# it is going to be called first See the first paragraph here
# https://cmake.org/cmake/help/latest/command/install.html#introduction
install(
CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${PROJECT_BINARY_DIR}\" --config \${CMAKE_INSTALL_CONFIG_NAME} --target uninstall)"
CODE "if (\${CMAKE_INSTALL_CONFIG_NAME})\n execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${PROJECT_BINARY_DIR}\" --config \${CMAKE_INSTALL_CONFIG_NAME} --target uninstall)\nendif()"
)

0 comments on commit cf58b66

Please sign in to comment.