build: Handle install prefix being absolute when installing sdk package
This commit is contained in:
parent
afede0ff9c
commit
d551e39a1c
@ -755,7 +755,11 @@ function(generateSDKDirectory)
|
||||
install(TARGETS libimhex ARCHIVE DESTINATION "${SDK_BUILD_PATH}/lib")
|
||||
|
||||
if ("$ENV{DESTDIR}" STREQUAL "")
|
||||
set(SDK_INSTALL_PATH "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_PREFIX}/sdk")
|
||||
if (IS_ABSOLUTE "${CMAKE_INSTALL_PREFIX}")
|
||||
set(SDK_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/sdk")
|
||||
else()
|
||||
set(SDK_INSTALL_PATH "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_PREFIX}/sdk")
|
||||
endif()
|
||||
else()
|
||||
set(SDK_INSTALL_PATH "$ENV{DESTDIR}/sdk")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user