Commit d63a642a authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

fix compilation with/without NEMO installed

parent b234b960
......@@ -85,7 +85,14 @@ STRING(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}
# create library "uns"
add_library (unsio ${LIBTYPE} ${LIBSOURCES})
target_link_libraries(unsio nemo)
IF (NOT NEMO_INSTALLED)
SET(DEP_NEMO_LIB "nemo")
ELSE (NOT NEMO_INSTALLED)
SET(DEP_NEMO_LIB "${NEMOLIB}/libnemo.a")
ENDIF (NOT NEMO_INSTALLED)
target_link_libraries(unsio ${DEP_NEMO_LIB})
# Manage HDF5 linking against libunsio
if(OSX)
......@@ -169,7 +176,7 @@ FOREACH(exe_cpp ${execpp_sources})
add_executable (${exe} ${exe_cpp})
# Link the executable to the Hello library.
target_link_libraries (${exe} unsio ${FC_GFORT_LIB} ${FC_G77_LIB} stdc++)
target_link_libraries (${exe} unsio ) # ${FC_GFORT_LIB} ${FC_G77_LIB} stdc++)
IF (${exe} STREQUAL "uns_info")
INSTALL(TARGETS ${exe} RUNTIME DESTINATION bin)
ENDIF()
......
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