Commit e93ad045 authored by Matthias Möller's avatar Matthias Möller

fix cmake (>=3.0) warning on MacOS

closes #2251

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19447 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 07d9a8af
......@@ -127,12 +127,22 @@ macro (acg_set_target_props target)
SKIP_BUILD_RPATH 0
)
elseif (APPLE AND NOT ACG_PROJECT_MACOS_BUNDLE)
set_target_properties (
${target} PROPERTIES
INSTALL_NAME_DIR "@executable_path/../${ACG_PROJECT_LIBDIR}"
BUILD_WITH_INSTALL_RPATH 1
SKIP_BUILD_RPATH 0
)
if (CMAKE_MAJOR_VERSION >= 3)
set_target_properties (
${target} PROPERTIES
INSTALL_RPATH "@executable_path/../${ACG_PROJECT_LIBDIR}"
MACOSX_RPATH 1
BUILD_WITH_INSTALL_RPATH 1
SKIP_BUILD_RPATH 0
)
else()
set_target_properties (
${target} PROPERTIES
INSTALL_NAME_DIR "@executable_path/../${ACG_PROJECT_LIBDIR}"
BUILD_WITH_INSTALL_RPATH 1
SKIP_BUILD_RPATH 0
)
endif(CMAKE_MAJOR_VERSION >= 3)
elseif (NOT APPLE)
set_target_properties (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment