Skip to content

Commit 2d4c42c

Browse files
committed
fix(build): Fix the target_sources after removing FILE_SET
1 parent 8b366fe commit 2d4c42c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC
8585
)
8686
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
8787

88-
target_sources(${PROJECT_NAME} INTERFACE HEADERS
89-
TYPE HEADERS
90-
BASE_DIRS ${PROJECT_SOURCE_DIR}/include/libdbc
91-
FILES ${HEADER_FILES}
92-
)
88+
target_sources(${PROJECT_NAME} INTERFACE ${HEADER_FILES})
9389

9490
if(DBC_GENERATE_SINGLE_HEADER)
9591
add_custom_target(single_header ALL

test/test_dbc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#include "exceptions/error.hpp"
21
#include "testing_utils/common.hpp"
32
#include "testing_utils/defines.hpp"
43
#include <catch2/catch_approx.hpp>
54
#include <catch2/catch_test_macros.hpp>
65
#include <catch2/matchers/catch_matchers.hpp>
76
#include <libdbc/dbc.hpp>
7+
#include <libdbc/exceptions/error.hpp>
88
#include <string>
99

1010
TEST_CASE("Testing dbc file loading error issues", "[fileio][error]") {

0 commit comments

Comments
 (0)