blob: 802ff4f42550830c8a624b3184cabf7d65502f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
enable_language(C)
set(obj "${CMAKE_C_OUTPUT_EXTENSION}")
if(BORLAND)
set(pre -)
endif()
add_link_options($<$<AND:$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>,$<CONFIG:Release>>:${pre}BADFLAG_SHARED_RELEASE${obj}>)
add_link_options($<$<AND:$<STREQUAL:$<TARGET_PROPERTY:TYPE>,MODULE_LIBRARY>,$<CONFIG:Release>>:${pre}BADFLAG_MODULE_RELEASE${obj}>)
add_link_options($<$<AND:$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>,$<CONFIG:Release>>:${pre}BADFLAG_EXECUTABLE_RELEASE${obj}>)
add_library(LinkOptions_shared SHARED LinkOptionsLib.c)
add_library(LinkOptions_mod MODULE LinkOptionsLib.c)
add_executable(LinkOptions_exe LinkOptionsExe.c)
|