Skip to content

Commit 561f1ad

Browse files
committed
Make sure the install paths are rooted at CMAKE_INSTALL_PREFIX
1 parent 8c20315 commit 561f1ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ install(TARGETS graphqlservice
142142
ARCHIVE DESTINATION lib
143143
LIBRARY DESTINATION lib)
144144

145-
set(CMAKE_INSTALL_TOOLSDIR tools/${PROJECT_NAME}
145+
set(CMAKE_INSTALL_TOOLSDIR ${CMAKE_INSTALL_PREFIX}/bin/${PROJECT_NAME}
146146
CACHE PATH "Install schemagen to this directory.")
147147

148148
install(TARGETS schemagen
@@ -160,7 +160,7 @@ install(FILES
160160
DESTINATION include/graphqlservice
161161
CONFIGURATIONS Release)
162162

163-
set(CMAKE_INSTALL_CONFIGDIR lib/cmake/${PROJECT_NAME}
163+
set(CMAKE_INSTALL_CONFIGDIR ${CMAKE_INSTALL_PREFIX}/lib/cmake/${PROJECT_NAME}
164164
CACHE PATH "Install the CMake config files to this directory.")
165165

166166
install(FILES cmake/${PROJECT_NAME}-config.cmake

0 commit comments

Comments
 (0)