Don't strip RPATH on Solaris (FS#744)

Signed-off-by: Steven Oliver <oliver.steven@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Steven Oliver 2012-08-23 22:12:03 -04:00 committed by Uli Schlachter
parent 954af3b62f
commit cde352fd45
1 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,13 @@ set(AWE_MAN_SRCS
${SOURCE_DIR}/manpages/awesomerc.5.txt) ${SOURCE_DIR}/manpages/awesomerc.5.txt)
set(AWE_MAN_LANGS it es fr de ru) set(AWE_MAN_LANGS it es fr de ru)
# Don't strip RPATH if compiling on Solaris
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif()
add_executable(${PROJECT_AWE_NAME} add_executable(${PROJECT_AWE_NAME}
${AWE_SRCS}) ${AWE_SRCS})