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.
17 lines
394 B
17 lines
394 B
4 years ago
|
|
||
|
enable_language(C)
|
||
|
|
||
|
set(obj "${CMAKE_C_OUTPUT_EXTENSION}")
|
||
|
if(BORLAND)
|
||
|
set(pre -)
|
||
|
endif()
|
||
|
|
||
|
add_link_options ($<$<LINK_LANGUAGE:C>:${pre}BADFLAG_LANG_C${obj}>
|
||
|
$<$<LINK_LANGUAGE:CXX>:${pre}BADFLAG_LANG_CXX${obj}>)
|
||
|
|
||
|
add_library(LinkOptions_shared SHARED LinkOptionsLib.c)
|
||
|
|
||
|
add_library(LinkOptions_mod MODULE LinkOptionsLib.c)
|
||
|
|
||
|
add_executable(LinkOptions_exe LinkOptionsExe.c)
|