diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bf6f3b..ddb3915 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,8 @@ if(NOT JSONCPP_FOUND) set(JSONCPP_INCLUDEDIR ${PROJECT_SOURCE_DIR}/libs/jsoncpp-1.7.7/include) elseif(NOT JSONCPP_LIBRARIES AND JSONCPP_LIBS) set(JSONCPP_LIBRARIES "${JSONCPP_LIBS}") +else() + set(JSONCPP_INCLUDEDIR "${JSONCPP_INCLUDE_DIRS}") endif() target_link_libraries(${PROJECT_NAME} PUBLIC ${JSONCPP_LIBRARIES})