]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix, use the same Generator for when querying for language support.
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Jul 2013 09:13:41 +0000 (09:13 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 23 Jul 2013 09:13:41 +0000 (09:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@30124 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_enable_language_optional.cmake

index 975f4760598d997a73a9c414e71ea45a445684ed..885b960f8c47e52b43a83210f6d029ca3b19fe8b 100644 (file)
@@ -48,8 +48,9 @@ MACRO(ENABLE_LANGUAGE_OPTIONAL _language)
     FILE(WRITE ${_tmp}/CMakeLists.txt
       "PROJECT(foobar ${_language})"
       )
+
     EXECUTE_PROCESS(
-      COMMAND ${CMAKE_COMMAND} ${_hint} .
+      COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${_hint} .
       WORKING_DIRECTORY ${_tmp}
       RESULT_VARIABLE _result
       OUTPUT_QUIET

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.