1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-23 02:38:51 -05:00

cmake update for mac os

This commit is contained in:
hrocho 2017-09-22 12:05:35 +02:00
parent 9452a6eec1
commit aa916798d5
2 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,12 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
set(warnings "-Wall -Wextra -Werror") set(warnings "-Wall -Wextra -Werror")
endif() endif()
if(APPLE)
set(RPATH_VARIABLE "DYLD_LIBRARY_PATH")
else()
set(RPATH_VARIABLE "LD_LIBRARY_PATH")
endif()
############# Requirements ################## ############# Requirements ##################
find_package(GSL REQUIRED) find_package(GSL REQUIRED)

View File

@ -1,3 +1,3 @@
export CATIMAPATH=${PROJECT_BINARY_DIR} export CATIMAPATH=${PROJECT_BINARY_DIR}
#export PATH=$PATH:$CATIMAPATH/bin #export PATH=$PATH:$CATIMAPATH/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATIMAPATH export ${RPATH_VARIABLE}=$LD_LIBRARY_PATH:$CATIMAPATH