Skip to content
Snippets Groups Projects
Commit b1c0c284 authored by Aikawa Yataro's avatar Aikawa Yataro Committed by Milo Yip
Browse files

CMakeLists: include path fix + compatibility.

parent d621dc9e
Branches
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ install(FILES readme.md
# Add an interface target to export it
add_library(RapidJSON INTERFACE)
target_include_directories(RapidJSON INTERFACE $<INSTALL_INTERFACE:include/rapidjson>)
target_include_directories(RapidJSON INTERFACE $<INSTALL_INTERFACE:include>)
install(DIRECTORY include/rapidjson
DESTINATION "${INCLUDE_INSTALL_DIR}"
......
......@@ -17,3 +17,7 @@ get_filename_component(RapidJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_target_property(RapidJSON_INCLUDE_DIR RapidJSON INTERFACE_INCLUDE_DIRECTORIES)
set( RapidJSON_INCLUDE_DIRS ${RapidJSON_INCLUDE_DIR} )
if(NOT TARGET rapidjson)
add_library(rapidjson ALIAS RapidJSON)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment