From: Leonardo Flórez-Valencia Date: Mon, 15 May 2017 12:35:55 +0000 (-0500) Subject: ... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=429ab21615a87d7373ee60c200e6940a7f543a9a;p=FrontAlgorithms.git ... --- diff --git a/cmake/fpaBaseConfig.cmake b/cmake/fpaBaseConfig.cmake index 3fdc8ab..4e9cb25 100644 --- a/cmake/fpaBaseConfig.cmake +++ b/cmake/fpaBaseConfig.cmake @@ -1,3 +1,17 @@ +## ========================================================= +## == If working on a MacOSX, activate the use of RPATH's == +## ========================================================= + +set(EXECUTABLE_TYPE "" CACHE STRING "Executable linking." FORCE) +if(APPLE) + set(EXECUTABLE_TYPE "MACOSX_BUNDLE" CACHE STRING "Executable linking." FORCE) + set(CMAKE_MACOSX_RPATH true CACHE BOOL "Use RPATH's on MacOSX systems." FORCE) + mark_as_advanced(CMAKE_MACOSX_RPATH) +elseif(WIN32) + set(EXECUTABLE_TYPE "WIN32" CACHE STRING "Executable linking." FORCE) +endif(APPLE) +mark_as_advanced(EXECUTABLE_TYPE) + ## ======================================================================= ## == Force c++11 language version == ## == NOTE: It seems that by default on Visual Studio Compiler supports ==