CheckLanguage: Pass generator platform and toolset into check

Otherwise we do not check for support for the language with the same
generator settings as the caller.
This commit is contained in:
Brad King
2017-03-08 09:10:45 -05:00
parent 0a312e2271
commit 0f5e76df0c

View File

@@ -46,6 +46,8 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
execute_process(
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}
COMMAND ${CMAKE_COMMAND} . -G ${CMAKE_GENERATOR}
-A "${CMAKE_GENERATOR_PLATFORM}"
-T "${CMAKE_GENERATOR_TOOLSET}"
OUTPUT_VARIABLE output
ERROR_VARIABLE output
RESULT_VARIABLE result