From 6831fa1e926659d31af08f042257ed048025a9d3 Mon Sep 17 00:00:00 2001 From: Adalid Claure Date: Sun, 21 Jan 2018 06:45:38 -0500 Subject: [PATCH] turned RPATH support on for Mac and bumped the CMake version as required; --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ce08813..1950abb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ # Please note that the package source code is licensed under its own license. project ( lua C ) -cmake_minimum_required ( VERSION 2.8 ) +cmake_minimum_required ( VERSION 3.0.2 ) include ( cmake/dist.cmake ) include ( lua ) @@ -63,6 +63,10 @@ else ( ) option ( LUA_USE_ULONGJMP "Use ulongjmp" ON ) endif ( ) +if (APPLE) + set(CMAKE_MACOSX_RPATH ON) +endif() + ## SETUP # Optional libraries find_package ( Readline )