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 )