summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-03-04 20:53:15 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-03-09 19:49:17 (GMT)
commitb734fa44719a780683e2eb0dfaabd38d64daa3f6 (patch)
tree55e4a63eb8ebb01ccc216b146fd5a126ea0698b1 /Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake
parent0b945ea9a6a38d1b3ee27cc32afb4268bd571600 (diff)
downloadCMake-b734fa44719a780683e2eb0dfaabd38d64daa3f6.zip
CMake-b734fa44719a780683e2eb0dfaabd38d64daa3f6.tar.gz
CMake-b734fa44719a780683e2eb0dfaabd38d64daa3f6.tar.bz2
Genex: Allow COMPILE_LANGUAGE when processing include directories.
Issue an error if this is encountered by an IDE generator.
Diffstat (limited to 'Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake b/Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake
index 8a32aef..5e0a5f5 100644
--- a/Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake
+++ b/Tests/RunCMake/COMPILE_LANGUAGE-genex/RunCMakeTest.cmake
@@ -11,3 +11,10 @@ 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()