summaryrefslogtreecommitdiffstats
path: root/Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-07 20:37:23 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-24 17:05:34 (GMT)
commit310aef959b6e41d60f35eec4b4a2e5698aa42abe (patch)
tree3ae78b8cf8377230dfdbea7470aeae7018a4a18a /Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest
parent30ff6cf9e9b3211a54187e416d6cc2ce9b0e9b77 (diff)
downloadCMake-310aef959b6e41d60f35eec4b4a2e5698aa42abe.zip
CMake-310aef959b6e41d60f35eec4b4a2e5698aa42abe.tar.gz
CMake-310aef959b6e41d60f35eec4b4a2e5698aa42abe.tar.bz2
Make ExportLanguages a subtest of the ObjectLibrary test
It was a subtest of the RunCMake.ObjectLibrary test. However, we need to test a build with ExternalProject after running CMake, which RunCMake tests do not do.
Diffstat (limited to 'Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest')
-rw-r--r--Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest/CMakeLists.txt b/Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest/CMakeLists.txt
new file mode 100644
index 0000000..fc8dd2b
--- /dev/null
+++ b/Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+cmake_minimum_required(VERSION 2.8)
+
+project(ExportLanguagesTest)
+
+include(${CMAKE_CURRENT_BINARY_DIR}/../BExport.cmake)
+get_property(configs TARGET ExpExportLanguagesB PROPERTY IMPORTED_CONFIGURATIONS)
+foreach(c ${configs})
+ get_property(langs TARGET ExpExportLanguagesB PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES_${c})
+ list(FIND langs CXX pos)
+ if(${pos} LESS 0)
+ message(FATAL_ERROR "Target export does not list object library languages.")
+ endif()
+endforeach()