forked from TartanLlama/expected
Use add_library for subdirectory usage instead of add_executable
Fixes #73
This commit is contained in:
@ -32,7 +32,7 @@ target_include_directories(expected
|
|||||||
$<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::expected ALIAS expected)
|
add_library(tl::expected ALIAS expected)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Installation help
|
# Installation help
|
||||||
|
Reference in New Issue
Block a user