From 0dfc7b4e41b1245e47936d6c99bf8e3d80e42b9f Mon Sep 17 00:00:00 2001 From: Sy Brand Date: Mon, 11 Nov 2019 10:56:36 +0000 Subject: [PATCH] Use add_library for subdirectory usage instead of add_executable --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea398c2..a382ace 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ target_include_directories(optional $) if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) - add_executable(tl::optional ALIAS optional) + add_library(tl::optional ALIAS optional) endif() configure_package_config_file(