mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -06:00
If we're creating generation objects for imported targets only, we don't need the export sets. Only compute build file generators if generating for all targets. Fixes: #23709
10 lines
274 B
CMake
10 lines
274 B
CMake
enable_language(CXX)
|
|
|
|
add_library(interface INTERFACE)
|
|
install(TARGETS interface EXPORT export)
|
|
export(EXPORT export)
|
|
|
|
add_library(imported IMPORTED INTERFACE)
|
|
|
|
try_compile(tc "${CMAKE_CURRENT_BINARY_DIR}/tc" "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp" LINK_LIBRARIES imported)
|