Tests: Teach RunCMake.export to enable languages only when needed

This commit is contained in:
Brad King 2015-07-21 14:27:00 -04:00
parent 265b9db7c2
commit 3b09398ae2
5 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
CMake Error at AppendExport.cmake:8 \(export\):
CMake Error at AppendExport.cmake:[0-9]+ \(export\):
export EXPORT signature does not recognise the APPEND option.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)

View File

@ -1,3 +1,4 @@
enable_language(CXX)
add_library(foo empty.cpp)
export(TARGETS foo FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
install(TARGETS foo EXPORT fooExport

View File

@ -1,3 +1,3 @@
cmake_minimum_required(VERSION 2.8.4)
project(${RunCMake_TEST})
project(${RunCMake_TEST} NONE)
include(${RunCMake_TEST}.cmake)

View File

@ -1,4 +1,4 @@
CMake Error at OldIface.cmake:8 \(export\):
CMake Error at OldIface.cmake:[0-9]+ \(export\):
export EXPORT signature does not recognise the
EXPORT_LINK_INTERFACE_LIBRARIES option.
Call Stack \(most recent call first\):

View File

@ -1,3 +1,4 @@
enable_language(CXX)
add_library(foo empty.cpp)
export(TARGETS foo FILE "${CMAKE_CURRENT_BINARY_DIR}/foo.cmake")
install(TARGETS foo EXPORT fooExport