1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00

Merge pull request #6 from hrosiak/cmake

cmake update for mac os
This commit is contained in:
Andrej Prochazka 2017-09-22 12:11:26 +02:00 committed by GitHub
commit 7d458f0c98
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")
endif()
if(APPLE)
set(RPATH_VARIABLE "DYLD_LIBRARY_PATH")
else()
set(RPATH_VARIABLE "LD_LIBRARY_PATH")
endif()
############# Requirements ##################
find_package(GSL REQUIRED)

View File

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