]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Do not automatically rebuild a project when switching build type
authorMatthias Maier <tamiko@43-1.org>
Tue, 5 Feb 2019 16:20:26 +0000 (10:20 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 7 Feb 2019 16:14:28 +0000 (10:14 -0600)
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

index 94fcbc8a4982d4a3b68b0e291db38b668c660b75..a494f0a9e8f473f8eff2fb1ce0e87e04cf7e90ba 100644 (file)
@@ -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"
     )
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.