]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix: Also compile and link the example steps when $ make (release|debug...
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Sep 2013 10:01:38 +0000 (10:01 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Sep 2013 10:01:38 +0000 (10:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@30678 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index a895702cd69f61d83e506e5efe90050a1e004d55..4391d4bcf0edbb519cff7cc6405b81c8629a5b6c 100644 (file)
@@ -85,11 +85,13 @@ 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.