Commit 9900bdd7 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

ubuntu/osx fixes

parent 914e0f7a
...@@ -92,20 +92,15 @@ ELSE (NOT NEMO_INSTALLED) ...@@ -92,20 +92,15 @@ ELSE (NOT NEMO_INSTALLED)
SET(DEP_NEMO_LIB "${NEMOLIB}/libnemo.a") SET(DEP_NEMO_LIB "${NEMOLIB}/libnemo.a")
ENDIF (NOT NEMO_INSTALLED) ENDIF (NOT NEMO_INSTALLED)
target_link_libraries(unsio ${DEP_NEMO_LIB}) target_link_libraries(unsio ${DEP_NEMO_LIB} ${HDF5_CXX_LIBRARIES} sqlite3)
# Manage HDF5 linking against libunsio # Manage HDF5 linking against libunsio
if(OSX) if(OSX)
# add " " after .dylib # add " " after .dylib
string(REPLACE ".dylib" ".dylib " HDF5_CXX_LIBRARIES_LIST ${HDF5_CXX_LIBRARIES}) string(REPLACE ".dylib" ".dylib " HDF5_CXX_LIBRARIES_LIST ${HDF5_CXX_LIBRARIES})
message(STATUS "HDF5_CXX_LIBRARIES_LIST = " ${HDF5_CXX_LIBRARIES_LIST}) message(STATUS "HDF5_CXX_LIBRARIES_LIST = " ${HDF5_CXX_LIBRARIES_LIST})
set_target_properties(unsio PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace ${HDF5_CXX_LIBRARIES_LIST} -L${NEMOLIB} -lnemo -lsqlite3") #set_target_properties(unsio PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace ${HDF5_CXX_LIBRARIES_LIST} -L${NEMOLIB} -lnemo -lsqlite3")
else(OSX) else(OSX)
# link unsio against hdf5 and sqlit3
# add " " after .so
string(REPLACE ".so" ".so " HDF5_CXX_LIBRARIES_LIST ${HDF5_CXX_LIBRARIES})
message(STATUS "HDF5_CXX_LIBRARIES_LIST = " ${HDF5_CXX_LIBRARIES_LIST})
set_target_properties(unsio PROPERTIES LINK_FLAGS "${HDF5_CXX_LIBRARIES_LIST} -lsqlite3")
endif(OSX) endif(OSX)
# ---------------------------------------------------------- # ----------------------------------------------------------
......
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