mirror of
https://github.com/TartanLlama/optional.git
synced 2025-06-24 16:41: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>)
|
||||
|
||||
if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
||||
add_executable(tl::optional ALIAS optional)
|
||||
add_library(tl::optional ALIAS optional)
|
||||
endif()
|
||||
|
||||
configure_package_config_file(
|
||||
|
Reference in New Issue
Block a user