Use add_library for subdirectory usage instead of add_executable
Fixes #73
This commit is contained in:
1 parent
0ca73ee30e
commit
1d9c5d8c0d
1 file changed
+1
-1
+1
-1
@@ -32,7 +32,7 @@ target_include_directories(expected
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
|
||||
if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
||||
add_executable(tl::expected ALIAS expected)
|
||||
add_library(tl::expected ALIAS expected)
|
||||
endif()
|
||||
|
||||
# Installation help
|
||||
|
||||
Reference in new issue
Block a user