summaryrefslogtreecommitdiffstats
path: root/Tests/FortranC
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-05 21:10:36 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-07 16:09:56 (GMT)
commit56ca8d4e6365d67901e0cff7f2bd99f174537a97 (patch)
tree17473ad1dd7b67c915b53a17b0bca243b500cc45 /Tests/FortranC
parentf36c665df80e8e3f4eca0fed28b5d1c3df739552 (diff)
downloadCMake-56ca8d4e6365d67901e0cff7f2bd99f174537a97.zip
CMake-56ca8d4e6365d67901e0cff7f2bd99f174537a97.tar.gz
CMake-56ca8d4e6365d67901e0cff7f2bd99f174537a97.tar.bz2
Tests: Add generator toolset support
Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.
Diffstat (limited to 'Tests/FortranC')
-rw-r--r--Tests/FortranC/Flags.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/FortranC/Flags.cmake.in b/Tests/FortranC/Flags.cmake.in
index 0b82f0e..3436309 100644
--- a/Tests/FortranC/Flags.cmake.in
+++ b/Tests/FortranC/Flags.cmake.in
@@ -15,6 +15,7 @@ set(COMMAND)
execute_process(
WORKING_DIRECTORY "${bld}"
COMMAND ${CMAKE_COMMAND} "${src}" -G "@CMAKE_TEST_GENERATOR@"
+ -T "@CMAKE_TEST_GENERATOR_TOOLSET@"
"-DFortranC_TEST_FLAGS=1"
"-DCMAKE_C_COMPILER=${bld}/cc.sh"
"-DCMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@"