Use add_library for subdirectory usage instead of add_executable

Fixes #73
This commit is contained in:
Sy Brand authored and GitHub committed 2019-11-11 10:57:18 +00:00
1 parent 0ca73ee30e
commit 1d9c5d8c0d
1 file changed
+1 -1
+1 -1
View File
@@ -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