Use add_library for subdirectory usage instead of add_executable

Fixes #73
This commit is contained in:
Sy Brand
2019-11-11 10:57:18 +00:00
committed by GitHub
parent 0ca73ee30e
commit 1d9c5d8c0d

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