Skip to content

Commit deb470b

Browse files
committed
cmake: Only install graphqljson when USE_RAPIDJSON is set
Signed-off-by: Marc Bodmer <marc.bodmer@securiton.ch>
1 parent b996095 commit deb470b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,20 @@ endif()
155155

156156
install(TARGETS
157157
graphqlservice
158-
graphqljson
159158
EXPORT cppgraphqlgen-targets
160159
RUNTIME DESTINATION bin
161160
ARCHIVE DESTINATION lib
162161
LIBRARY DESTINATION lib)
163162

163+
if(USE_RAPIDJSON)
164+
install(TARGETS
165+
graphqljson
166+
EXPORT cppgraphqlgen-targets
167+
RUNTIME DESTINATION bin
168+
ARCHIVE DESTINATION lib
169+
LIBRARY DESTINATION lib)
170+
endif()
171+
164172
set(CMAKE_INSTALL_TOOLSDIR ${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}
165173
CACHE PATH "Install schemagen to this directory.")
166174

0 commit comments

Comments
 (0)