You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
651 B
18 lines
651 B
6 years ago
|
|
||
|
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)
|