From: Matthias Maier Date: Tue, 5 Feb 2019 16:20:26 +0000 (-0600) Subject: CMake: Do not automatically rebuild a project when switching build type X-Git-Tag: v9.1.0-rc1~356^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4473deb06d77babfd0573ae6c4ce8cb723912c3;p=dealii.git CMake: Do not automatically rebuild a project when switching build type For a long time the "debug" and "release" targets of our convenience macro DEAL_II_INVOKE_AUTOPILOT automatically rebuild the project when switching to the debug or release flavor. Closes #7693 --- diff --git a/cmake/macros/macro_deal_ii_invoke_autopilot.cmake b/cmake/macros/macro_deal_ii_invoke_autopilot.cmake index 94fcbc8a49..a494f0a9e8 100644 --- a/cmake/macros/macro_deal_ii_invoke_autopilot.cmake +++ b/cmake/macros/macro_deal_ii_invoke_autopilot.cmake @@ -141,13 +141,11 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT) # Define custom targets to easily switch the build type: ADD_CUSTOM_TARGET(debug COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Debug ${CMAKE_SOURCE_DIR} - COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target all COMMENT "Switch CMAKE_BUILD_TYPE to Debug" ) ADD_CUSTOM_TARGET(release COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR} - COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target all COMMENT "Switch CMAKE_BUILD_TYPE to Release" )