mirror of
https://github.com/TartanLlama/optional.git
synced 2025-06-25 00:51:37 +02:00
Use add_library for subdirectory usage instead of add_executable
This commit is contained in:
@ -41,7 +41,7 @@ target_include_directories(optional
|
|||||||
$<INSTALL_INTERFACE:include>)
|
$<INSTALL_INTERFACE:include>)
|
||||||
|
|
||||||
if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
||||||
add_executable(tl::optional ALIAS optional)
|
add_library(tl::optional ALIAS optional)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_package_config_file(
|
configure_package_config_file(
|
||||||
|
Reference in New Issue
Block a user