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.
13 lines
241 B
13 lines
241 B
10 years ago
|
|
||
|
enable_language(CXX C)
|
||
|
|
||
|
add_library(empty empty.cpp empty.c)
|
||
|
target_compile_options(empty
|
||
|
PRIVATE LANG_IS_$<COMPILE_LANGUAGE>
|
||
|
)
|
||
|
|
||
|
file(GENERATE
|
||
|
OUTPUT opts-$<COMPILE_LANGUAGE>.txt
|
||
|
CONTENT "$<TARGET_PROPERTY:empty,COMPILE_OPTIONS>\n"
|
||
|
)
|