From 1d9c5d8c0da84b8ddc54bd3d90d632eec95c1f13 Mon Sep 17 00:00:00 2001 From: Sy Brand Date: Mon, 11 Nov 2019 10:57:18 +0000 Subject: [PATCH] Use add_library for subdirectory usage instead of add_executable Fixes #73 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b970faa..8df9107 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ target_include_directories(expected $) if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) - add_executable(tl::expected ALIAS expected) + add_library(tl::expected ALIAS expected) endif() # Installation help