Skip to content

Commit 4b26a81

Browse files
watologo1Thomas Renninger
authored and
Thomas Renninger
committedFeb 24, 2023
Make use of standard variables for installation
otherwise %cmake rpm macros will not be able to install things to the right places.
1 parent 096b17b commit 4b26a81

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
@@ -97,10 +97,10 @@ if(CZMQ_FOUND)
9797
endif()
9898

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

105105
ENABLE_TESTING()
106106

0 commit comments

Comments
 (0)