blob: 281f8aa3ab9e9489ad5c5febfbee4074d3300f54 (
plain)
1
2
3
4
5
6
7
8
9
|
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)
|