bug #867: forward the cmake generator when testing support for fortran. (was already fixed in the default branch)

This commit is contained in:
Gael Guennebaud 2014-08-28 09:15:33 +02:00
parent 36506511a1
commit 7443d8b4e9

View File

@ -33,7 +33,7 @@ function(workaround_9220 language language_works)
file(WRITE ${CMAKE_BINARY_DIR}/language_tests/${language}/CMakeLists.txt
${text})
execute_process(
COMMAND ${CMAKE_COMMAND} .
COMMAND ${CMAKE_COMMAND} . -G "${CMAKE_GENERATOR}"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/language_tests/${language}
RESULT_VARIABLE return_code
OUTPUT_QUIET