Skip to content

Commit de26fe1

Browse files
try a different target + build less
"they" do not maintain the CMake scripts so this will be fun open-source-parsers/jsoncpp#455 (comment)
1 parent 5efe7c0 commit de26fe1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/install/open-source-parsers-jsoncpp/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
# https://github.com/open-source-parsers/jsoncpp/blob/69098a18b9af0c47549d9a271c054d13ca92b006/include/PreventInSourceBuilds.cmake#L8
1717
mkdir build
1818
cd build
19-
cmake .. -DJSONCPP_WITH_TESTS=OFF -DBUILD_SHARED_LIBS=OFF
19+
cmake .. -DJSONCPP_WITH_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_OBJECT_LIBS=OFF
2020
cmake --build .
2121
sudo cmake --install .
2222
shell: bash

example/traits/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if(TARGET kazuho_picojson)
3030
endif()
3131

3232
find_package(jsoncpp CONFIG)
33-
if(TARGET jsoncpp)
33+
if(TARGET jsoncpp_static)
3434
add_executable(open-source-parsers-jsoncpp open-source-parsers-jsoncpp.cpp)
35-
target_link_libraries(open-source-parsers-jsoncpp jsoncpp jwt-cpp::jwt-cpp)
35+
target_link_libraries(open-source-parsers-jsoncpp jsoncpp_static jwt-cpp::jwt-cpp)
3636
endif()

0 commit comments

Comments
 (0)