File tree Expand file tree Collapse file tree 3 files changed +8
-25
lines changed Expand file tree Collapse file tree 3 files changed +8
-25
lines changed Original file line number Diff line number Diff line change 11file (GLOB INCLUDE_FILES "json/*.h" )
2- install (FILES ${INCLUDE_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /json)
2+ install (FILES
3+ ${INCLUDE_FILES}
4+ ${PROJECT_BINARY_DIR} /include /json/version .h
5+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /json)
6+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ set( PUBLIC_HEADERS
4747 ${JSONCPP_INCLUDE_DIR} /json/reader.h
4848 ${JSONCPP_INCLUDE_DIR} /json/writer.h
4949 ${JSONCPP_INCLUDE_DIR} /json/assertions.h
50- ${JSONCPP_INCLUDE_DIR} /json/version .h
50+ ${PROJECT_BINARY_DIR} / include /json/version .h
5151 )
5252
5353source_group ( "Public API" FILES ${PUBLIC_HEADERS} )
@@ -141,5 +141,6 @@ install( TARGETS jsoncpp_lib ${INSTALL_EXPORT}
141141if (NOT CMAKE_VERSION VERSION_LESS 2.8.11)
142142 target_include_directories ( jsoncpp_lib PUBLIC
143143 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >
144- $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR} /${JSONCPP_INCLUDE_DIR} >)
144+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR} /${JSONCPP_INCLUDE_DIR} >
145+ $<BUILD_INTERFACE:${PROJECT_BINARY_DIR} /include /json>)
145146endif ()
You can’t perform that action at this time.
0 commit comments