Commit 1a184803 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

fix for OSX

parent a4310d1c
...@@ -94,6 +94,11 @@ STRING(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} ...@@ -94,6 +94,11 @@ STRING(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}
# create library "uns" # create library "uns"
add_library (unsio ${LIBTYPE} ${LIBSOURCES}) add_library (unsio ${LIBTYPE} ${LIBSOURCES})
# special flags for MacOSX
if (OSX)
set(CMAKE_MACOSX_RPATH ON)
endif()
#
IF (NOT NEMO_INSTALLED) IF (NOT NEMO_INSTALLED)
SET(DEP_NEMO_LIB "nemo") SET(DEP_NEMO_LIB "nemo")
...@@ -102,6 +107,9 @@ ELSE (NOT NEMO_INSTALLED) ...@@ -102,6 +107,9 @@ ELSE (NOT NEMO_INSTALLED)
ENDIF (NOT NEMO_INSTALLED) ENDIF (NOT NEMO_INSTALLED)
target_link_libraries(unsio ${DEP_NEMO_LIB} ${HDF5_CXX_LIBRARIES} sqlite3 z ) target_link_libraries(unsio ${DEP_NEMO_LIB} ${HDF5_CXX_LIBRARIES} sqlite3 z )
if (OSX)
set_target_properties(unsio PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace")
endif()
# ---------------------------------------------------------- # ----------------------------------------------------------
# Install SETUP # Install SETUP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment