File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
.github/actions/install/open-source-parsers-jsoncpp Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
# https://github.com/open-source-parsers/jsoncpp/blob/69098a18b9af0c47549d9a271c054d13ca92b006/include/PreventInSourceBuilds.cmake#L8
17
17
mkdir build
18
18
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
20
20
cmake --build .
21
21
sudo cmake --install .
22
22
shell: bash
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ if(TARGET kazuho_picojson)
30
30
endif ()
31
31
32
32
find_package (jsoncpp CONFIG )
33
- if (TARGET jsoncpp )
33
+ if (TARGET jsoncpp_static )
34
34
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 )
36
36
endif ()
You can’t perform that action at this time.
0 commit comments