forked from MoonsideGames/FAudioGMS
set RPATH on unix build for game maker usage
parent
601aebaadd
commit
de988f97a1
|
@ -35,6 +35,14 @@ elseif(WIN32)
|
|||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
SET(BIN_RPATH "\$ORIGIN/assets") #thanks yoyo games
|
||||
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
set(CMAKE_INSTALL_RPATH ${BIN_RPATH})
|
||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
|
||||
endif()
|
||||
|
||||
# Source lists
|
||||
add_library(FAudioGMS
|
||||
#Public header
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue