From 4b217bca974e9318aaf2b8d80ccaf1a9a23b2b07 Mon Sep 17 00:00:00 2001 From: slvr Date: Fri, 9 Aug 2013 16:42:47 +0100 Subject: Macports support (OS X only). MAP_ANON -> MAP_ANONYMOUS (OS X only). --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c0fea1a1..644e8cc6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,14 @@ else() option(USE_NACL "Use NaCl library instead of libsodium") endif() +#OS X specific +if(APPLE) + set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /opt/local/lib) + set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} /opt/local/include) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/opt/local/include" ) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/opt/local/lib") +endif() + if(UNIX) find_package(Curses REQUIRED) endif() -- cgit v1.2.3