diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-10-07 20:37:23 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 17:05:34 (GMT) |
commit | 310aef959b6e41d60f35eec4b4a2e5698aa42abe (patch) | |
tree | 3ae78b8cf8377230dfdbea7470aeae7018a4a18a /Tests/ObjectLibrary/ExportLanguages/ExportLanguagesTest | |
parent | 30ff6cf9e9b3211a54187e416d6cc2ce9b0e9b77 (diff) | |
download | CMake-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.txt | 14 |
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() |