CMake/Tests/RunCMake/try_compile/BadLinkLibraries.cmake

4 lines
146 B
CMake

add_custom_target(not_a_library)
try_compile(RESULT ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src.c
LINK_LIBRARIES not_a_library)