Skip to content

Commit

Permalink
Update cmake to use target_sources
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Jul 20, 2024
1 parent 322d2cf commit 8b91771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/core/src/clp/error_handling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8b91771

Please sign in to comment.