Skip to content

Commit

Permalink
try PUBLIC jsonpp linking for embedded on WIN32 to get windows build …
Browse files Browse the repository at this point in the history
…happy
  • Loading branch information
hobu committed Oct 19, 2016
1 parent 60ef8cf commit cd41dd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/json.cmake
Expand Up @@ -20,7 +20,11 @@ else()
set(PDAL_JSONCPP_LIB_NAME pdal_jsoncpp)
set(PDAL_JSONCPP_INCLUDE_DIR ${PDAL_VENDOR_DIR}/jsoncpp/dist)
set(PDAL_JSONCPP_SRC ${PDAL_JSONCPP_INCLUDE_DIR}/jsoncpp.cpp)
set(JSON_CPP_LINK_TYPE PRIVATE)
if (WIN32)
set(JSON_CPP_LINK_TYPE PUBLIC)
else()
set(JSON_CPP_LINK_TYPE PRIVATE)
endif()
endif()

set_property(GLOBAL PROPERTY _JSONCPP_INCLUDED TRUE)

0 comments on commit cd41dd4

Please sign in to comment.