Tests: Move LINK_SEARCH_{START,END}_STATIC case to dedicated test

The test case added to RunCMake.set_property by commit 675ef165 (Allow
LINK_SEARCH_{START,END}_STATIC props to have default values, 2015-08-07)
is not a test of the set_property command and so belongs in its own test
case.  Create a new RunCMake.LinkStatic test to cover cases related to
static linking.

While at it, simplify the LINK_SEARCH_STATIC test case to enable only C.
This commit is contained in:
Brad King 2015-09-02 16:09:22 -04:00
parent 9e21b01a4d
commit 18d7f8fbfb
6 changed files with 8 additions and 2 deletions

View File

@ -139,6 +139,7 @@ add_RunCMake_test(GeneratorToolset)
add_RunCMake_test(GNUInstallDirs)
add_RunCMake_test(TargetPropertyGeneratorExpressions)
add_RunCMake_test(Languages)
add_RunCMake_test(LinkStatic)
add_RunCMake_test(ObjectLibrary)
add_RunCMake_test(Swift)
add_RunCMake_test(TargetObjects)

View File

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

View File

@ -1,4 +1,4 @@
project(LinkSearchStatic)
enable_language(C)
set(CMAKE_LINK_SEARCH_START_STATIC ON)
add_executable(LinkSearchStartStaticInit1 LinkStatic.c)

View File

@ -0,0 +1,3 @@
include(RunCMake)
run_cmake(LINK_SEARCH_STATIC)

View File

@ -1,4 +1,3 @@
include(RunCMake)
run_cmake(LINK_LIBRARIES)
run_cmake(LINK_SEARCH_STATIC)