summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake
blob: 8a32aef4914894b34ffe06980b47bda66e63bb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include(RunCMake)

if (RunCMake_GENERATOR MATCHES "Visual Studio")
    set(RunCMake-stderr-file CompileOptions-stderr-VS.txt)
    run_cmake(CompileOptions)
endif()
if (RunCMake_GENERATOR STREQUAL "Xcode")
    set(RunCMake-stderr-file CompileDefinitions-stderr-Xcode.txt)
    run_cmake(CompileDefinitions)
elseif (RunCMake_GENERATOR MATCHES "Visual Studio")
    set(RunCMake-stderr-file CompileDefinitions-stderr-VS.txt)
    run_cmake(CompileDefinitions)
endif()