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

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()
if (RunCMake_GENERATOR STREQUAL "Xcode")
    set(RunCMake-stderr-file IncludeDirectories-stderr-Xcode.txt)
    run_cmake(IncludeDirectories)
elseif (RunCMake_GENERATOR MATCHES "Visual Studio")
    set(RunCMake-stderr-file IncludeDirectories-stderr-VS.txt)
    run_cmake(IncludeDirectories)
endif()