blob: 6db5c857d66129b2ae7864b4c6370a980817a1b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
enable_language(C)
set(CMAKE_LINK_SEARCH_START_STATIC ON)
add_executable(LinkSearchStartStaticInit1 LinkStatic.c)
get_target_property(LSSS LinkSearchStartStaticInit1
LINK_SEARCH_START_STATIC)
if(NOT LSSS)
message(FATAL_ERROR "Failed to correctly initialize LINK_SEARCH_START_STATIC")
endif()
unset(CMAKE_LINK_SEARCH_START_STATIC)
add_executable(LinkSearchStartStaticSet1 LinkStatic.c)
set_target_properties(LinkSearchStartStaticSet1 PROPERTIES
LINK_SEARCH_START_STATIC ON)
get_target_property(LSSS LinkSearchStartStaticSet1
LINK_SEARCH_START_STATIC)
if(NOT LSSS)
message(FATAL_ERROR "Failed to correctly set LINK_SEARCH_START_STATIC")
endif()
set(CMAKE_LINK_SEARCH_START_STATIC OFF)
add_executable(LinkSearchStartStaticInit2 LinkStatic.c)
get_target_property(LSSS LinkSearchStartStaticInit2
LINK_SEARCH_START_STATIC)
if(LSSS)
message(FATAL_ERROR "Failed to correctly initialize LINK_SEARCH_START_STATIC")
endif()
unset(CMAKE_LINK_SEARCH_START_STATIC)
add_executable(LinkSearchStartStaticSet2 LinkStatic.c)
set_target_properties(LinkSearchStartStaticSet2 PROPERTIES
LINK_SEARCH_START_STATIC OFF)
get_target_property(LSSS LinkSearchStartStaticSet2
LINK_SEARCH_START_STATIC)
if(LSSS)
message(FATAL_ERROR "Failed to correctly set LINK_SEARCH_START_STATIC")
endif()
set(CMAKE_LINK_SEARCH_END_STATIC ON)
add_executable(LinkSearchEndStaticInit1 LinkStatic.c)
get_target_property(LSES LinkSearchEndStaticInit1
LINK_SEARCH_END_STATIC)
if(NOT LSES)
message(FATAL_ERROR "Failed to correctly initialize LINK_SEARCH_END_STATIC")
endif()
unset(CMAKE_LINK_SEARCH_END_STATIC)
add_executable(LinkSearchEndStaticSet1 LinkStatic.c)
set_target_properties(LinkSearchEndStaticSet1 PROPERTIES
LINK_SEARCH_END_STATIC ON)
get_target_property(LSSS LinkSearchEndStaticSet1
LINK_SEARCH_END_STATIC)
if(NOT LSSS)
message(FATAL_ERROR "Failed to correctly set LINK_SEARCH_END_STATIC")
endif()
set(CMAKE_LINK_SEARCH_END_STATIC OFF)
add_executable(LinkSearchEndStaticInit2 LinkStatic.c)
get_target_property(LSES LinkSearchEndStaticInit2
LINK_SEARCH_END_STATIC)
if(LSES)
message(FATAL_ERROR "Failed to correctly initialize LINK_SEARCH_END_STATIC")
endif()
unset(CMAKE_LINK_SEARCH_END_STATIC)
add_executable(LinkSearchEndStaticSet2 LinkStatic.c)
set_target_properties(LinkSearchEndStaticSet2 PROPERTIES
LINK_SEARCH_END_STATIC ON)
get_target_property(LSSS LinkSearchEndStaticSet2
LINK_SEARCH_END_STATIC)
if(NOT LSSS)
message(FATAL_ERROR "Failed to correctly set LINK_SEARCH_END_STATIC")
endif()
|