Skip to content

Commit b106294

Browse files
align target name
fix order or targets in tests
1 parent c4dc0bd commit b106294

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

example/traits/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ endif()
3838
find_package(glaze CONFIG)
3939
if(TARGET glaze::glaze)
4040
add_executable(glaze-json glaze-json.cpp)
41+
target_compile_features(jwt-cpp-test PRIVATE cxx_std_23)
4142
target_link_libraries(glaze-json glaze::glaze jwt-cpp::jwt-cpp)
4243
endif()
4344

44-
find_package(reflectcpp CONFIG)
45+
find_package(reflectcpp-json CONFIG)
4546
if(TARGET reflectcpp::reflectcpp)
46-
add_executable(reflectcpp_json reflectcpp-json.cpp)
47-
target_compile_features(reflectcpp_json PRIVATE cxx_std_20)
48-
target_link_libraries(reflectcpp_json jwt-cpp reflectcpp::reflectcpp)
47+
add_executable(reflectcpp-json reflectcpp-json.cpp)
48+
target_compile_features(reflectcpp-json PRIVATE cxx_std_20)
49+
target_link_libraries(reflectcpp-json jwt-cpp reflectcpp::reflectcpp)
4950
endif()

tests/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,13 @@ else()
175175
if(TARGET boost_json)
176176
target_link_libraries(jwt-cpp-test PRIVATE boost_json)
177177
endif()
178+
if(TARGET jsoncpp_static)
179+
target_link_libraries(jwt-cpp-test PRIVATE jsoncpp_static)
180+
endif()
178181
if(TARGET glaze::glaze)
179182
target_compile_features(jwt-cpp-test PRIVATE cxx_std_23)
180183
target_link_libraries(jwt-cpp-test PRIVATE glaze::glaze)
181184
endif()
182-
if(TARGET jsoncpp_static)
183-
target_link_libraries(jwt-cpp-test PRIVATE jsoncpp_static)
184-
endif()
185-
186185
if(TARGET reflectcpp::reflectcpp)
187186
target_compile_features(jwt-cpp-test PRIVATE cxx_std_20)
188187
target_link_libraries(jwt-cpp-test PRIVATE reflectcpp::reflectcpp)

0 commit comments

Comments
 (0)