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.
10 lines
294 B
10 lines
294 B
3 years ago
|
|
||
|
enable_language(C)
|
||
|
|
||
|
add_library(demo INTERFACE IMPORTED)
|
||
|
set_property(TARGET demo PROPERTY INTERFACE_LINK_OPTIONS "$<DEVICE_LINK:>")
|
||
|
|
||
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE EXECUTABLE)
|
||
|
try_compile(result "${CMAKE_CURRENT_BINARY_DIR}/tc" "${CMAKE_CURRENT_SOURCE_DIR}/empty.c"
|
||
|
LINK_LIBRARIES demo)
|