Skip to content

Commit

Permalink
Try to fix jsoncpp header not being public
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Oct 4, 2024
1 parent 787774c commit 8d72e9d
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 @@ -88,7 +88,6 @@ endif()
if (NOT TARGET jsoncpp_lib)
message(FATAL_ERROR "Jsoncpp is not available")
endif()
include_directories(${jsoncpp_INCLUDE_DIRS} ${JSONCPP_PKG_INCLUDE_DIRS})

## boost
set(Boost_USE_MULTITHREADED ON)
Expand Down Expand Up @@ -122,6 +121,8 @@ endif()

# building project
add_library(${PROJECT_NAME} ${SRC_LIST})

target_include_directories(${PROJECT_NAME} PUBLIC ${jsoncpp_INCLUDE_DIRS} ${JSONCPP_PKG_INCLUDE_DIRS})
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
Expand Down

0 comments on commit 8d72e9d

Please sign in to comment.