Skip to content

Commit 104ab1d

Browse files
watologo1Thomas Renninger
authored and
Thomas Renninger
committed
Make use of standard variables for installation
otherwise %cmake rpm macros will not be able to install things to the right places.
1 parent 660a7ec commit 104ab1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ if(CZMQ_FOUND)
9696
endif()
9797

9898
install(TARGETS redfishtest redfish
99-
RUNTIME DESTINATION bin
100-
LIBRARY DESTINATION lib)
101-
install(FILES ${REDFISH_HDR_PUBLIC_RED} DESTINATION include)
102-
install(FILES ${REDFISH_HDR_PUBLIC_ENTITIES} DESTINATION include/entities)
99+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
100+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
101+
install(FILES ${REDFISH_HDR_PUBLIC_RED} DESTINATION "${INCLUDE_INSTALL_DIR}")
102+
install(FILES ${REDFISH_HDR_PUBLIC_ENTITIES} DESTINATION "${INCLUDE_INSTALL_DIR}/entities")
103103

104104
ENABLE_TESTING()
105105

0 commit comments

Comments
 (0)