Skip to content

Commit

Permalink
Add cmake option to disable picojson install.
Browse files Browse the repository at this point in the history
see #68
  • Loading branch information
Thalhammer committed May 30, 2020
1 parent 1663f72 commit c9ef90d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ endif()

option(BUILD_TESTS "Configure CMake to build tests (or not)" ON)
option(EXTERNAL_PICOJSON "Use find_package() to locate the picojson header" OFF)
option(NO_INSTALL_PICOJSON "Do not install the picojson header" OFF)

project(jwt-cpp)

Expand Down Expand Up @@ -49,7 +50,7 @@ write_basic_package_version_file(
COMPATIBILITY ExactVersion)

install(FILES ${JWT_HEADERS} DESTINATION include/jwt-cpp)
if(NOT EXTERNAL_PICOJSON)
if(NOT EXTERNAL_PICOJSON AND NOT NO_INSTALL_PICOJSON)
install(FILES ${PICO_HEADER} DESTINATION include/picojson)
endif()

Expand Down

0 comments on commit c9ef90d

Please sign in to comment.