From d4473deb06d77babfd0573ae6c4ce8cb723912c3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 5 Feb 2019 10:20:26 -0600 Subject: [PATCH] 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 --- cmake/macros/macro_deal_ii_invoke_autopilot.cmake | 2 -- 1 file changed, 2 deletions(-) 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" ) -- 2.39.5