Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2014-11-03 09:33:18 +0300
committerRonan Collobert <ronan@collobert.com>2014-11-03 09:33:18 +0300
commit0079b6b2d0bbfb2d585a735e6e39f54ed815ddf7 (patch)
tree00869c828e7e84fefdb9014bed3c6f7b1d17b7fa /CMakeLists.txt
parent28f70cde89715250196c11e74369039dbed16877 (diff)
cleanup rpath to follow new cmake recommendations
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a587c8..d38ca6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,8 +2,14 @@
project(QtLua)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
-CMAKE_POLICY(VERSION 2.6)
+IF(APPLE)
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
+ CMAKE_POLICY(VERSION 2.8.12)
+ SET(CMAKE_MACOSX_RPATH TRUE) # @rpath in libs
+ELSE()
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
+ CMAKE_POLICY(VERSION 2.8)
+ENDIF()
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)