Skip to content

Commit

Permalink
Remove source files from INTERFACE add_library (#210)
Browse files Browse the repository at this point in the history
* Remove source files from add_library
* Enable examples and tests for CMake min-req check.
closes #209
  • Loading branch information
Thalhammer authored Feb 11, 2022
1 parent 4a537e9 commit 9d1a010
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ jobs:
make -j $(nproc)
sudo make install
- uses: ./.github/actions/install/gtest

- name: setup
run: |
mkdir build
cd build
cmake .. -DJWT_BUILD_EXAMPLES=OFF
cmake .. -DJWT_BUILD_EXAMPLES=ON -DJWT_BUILD_TESTS=ON
sudo make install
- name: test
Expand Down
2 changes: 1 addition & 1 deletion cmake/private-find-kazuho-picojson.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ endif()
unset(PICOJSON_INCLUDE_DIR CACHE)
find_path(PICOJSON_INCLUDE_DIR "picojson/picojson.h")
if(EXISTS "${PICOJSON_INCLUDE_DIR}/picojson/picojson.h")
add_library(kazuho_picojson INTERFACE "${PICOJSON_INCLUDE_DIR}/picojson/picojson.h")
add_library(kazuho_picojson INTERFACE)
target_include_directories(kazuho_picojson INTERFACE ${PICOJSON_INCLUDE_DIR})
endif()

0 comments on commit 9d1a010

Please sign in to comment.