Skip to content

Commit 9d1a010

Browse files
authored
Remove source files from INTERFACE add_library (#210)
* Remove source files from add_library * Enable examples and tests for CMake min-req check. closes #209
1 parent 4a537e9 commit 9d1a010

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ jobs:
6666
make -j $(nproc)
6767
sudo make install
6868
69+
- uses: ./.github/actions/install/gtest
70+
6971
- name: setup
7072
run: |
7173
mkdir build
7274
cd build
73-
cmake .. -DJWT_BUILD_EXAMPLES=OFF
75+
cmake .. -DJWT_BUILD_EXAMPLES=ON -DJWT_BUILD_TESTS=ON
7476
sudo make install
7577
7678
- name: test

cmake/private-find-kazuho-picojson.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ endif()
55
unset(PICOJSON_INCLUDE_DIR CACHE)
66
find_path(PICOJSON_INCLUDE_DIR "picojson/picojson.h")
77
if(EXISTS "${PICOJSON_INCLUDE_DIR}/picojson/picojson.h")
8-
add_library(kazuho_picojson INTERFACE "${PICOJSON_INCLUDE_DIR}/picojson/picojson.h")
8+
add_library(kazuho_picojson INTERFACE)
99
target_include_directories(kazuho_picojson INTERFACE ${PICOJSON_INCLUDE_DIR})
1010
endif()

0 commit comments

Comments
 (0)