File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ install(FILES readme.md
195
195
# Add an interface target to export it
196
196
add_library (RapidJSON INTERFACE )
197
197
198
- target_include_directories (RapidJSON INTERFACE $<INSTALL_INTERFACE:include /rapidjson >)
198
+ target_include_directories (RapidJSON INTERFACE $<INSTALL_INTERFACE:include >)
199
199
200
200
install (DIRECTORY include /rapidjson
201
201
DESTINATION "${INCLUDE_INSTALL_DIR} "
Original file line number Diff line number Diff line change @@ -17,3 +17,7 @@ get_filename_component(RapidJSON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
17
17
get_target_property (RapidJSON_INCLUDE_DIR RapidJSON INTERFACE_INCLUDE_DIRECTORIES )
18
18
19
19
set ( RapidJSON_INCLUDE_DIRS ${RapidJSON_INCLUDE_DIR} )
20
+
21
+ if (NOT TARGET rapidjson)
22
+ add_library (rapidjson ALIAS RapidJSON)
23
+ endif ()
You can’t perform that action at this time.
0 commit comments