From 24adb94e3a594359031b951a9657ef995434413c Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 23 Jul 2013 09:13:41 +0000 Subject: [PATCH] CMake: Bugfix, use the same Generator for when querying for language support. git-svn-id: https://svn.dealii.org/trunk@30124 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/macros/macro_enable_language_optional.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/cmake/macros/macro_enable_language_optional.cmake b/deal.II/cmake/macros/macro_enable_language_optional.cmake index 975f476059..885b960f8c 100644 --- a/deal.II/cmake/macros/macro_enable_language_optional.cmake +++ b/deal.II/cmake/macros/macro_enable_language_optional.cmake @@ -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 -- 2.39.5