Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LAMBERT Jean-charles
unsio
Commits
d63a642a
Commit
d63a642a
authored
Mar 14, 2016
by
LAMBERT Jean-charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation with/without NEMO installed
parent
b234b960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
CMakeLists.txt
+9
-2
No files found.
CMakeLists.txt
View file @
d63a642a
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment