mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
a95cbf3890
Reduce the length of the longest path on disk needed by the tests.
10 lines
292 B
CMake
10 lines
292 B
CMake
|
|
enable_language(C)
|
|
|
|
add_library(demo INTERFACE IMPORTED)
|
|
set_property(TARGET demo PROPERTY INTERFACE_LINK_OPTIONS "$<HOST_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)
|