From 8b9177159f15c77bb13a54ca6fab12073fc5ba56 Mon Sep 17 00:00:00 2001 From: LinZhihao-723 Date: Sat, 20 Jul 2024 17:01:58 -0400 Subject: [PATCH] Update cmake to use target_sources --- components/core/src/clp/error_handling/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/core/src/clp/error_handling/CMakeLists.txt b/components/core/src/clp/error_handling/CMakeLists.txt index 16a23625d..612987a14 100644 --- a/components/core/src/clp/error_handling/CMakeLists.txt +++ b/components/core/src/clp/error_handling/CMakeLists.txt @@ -2,7 +2,8 @@ set( ERROR_HANDLING_HEADER_LIST "ErrorCode.hpp" ) -add_library(error_handling INTERFACE ${ERROR_HANDLING_HEADER_LIST}) +add_library(error_handling INTERFACE) add_library(clp::error_handling ALIAS error_handling) +target_sources(error_handling INTERFACE ${ERROR_HANDLING_HEADER_LIST}) target_include_directories(error_handling INTERFACE ../) target_compile_features(error_handling INTERFACE cxx_std_20)