Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
1352d881
Commit
1352d881
authored
Oct 13, 2009
by
Alexander Wiebel
Browse files
[FIX] zlib is available on MacOS
parent
bd3797a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/dataHandler/io/nifti/CMakeLists.txt
src/dataHandler/io/nifti/CMakeLists.txt
+8
-3
No files found.
src/dataHandler/io/nifti/CMakeLists.txt
View file @
1352d881
...
...
@@ -5,9 +5,9 @@ MESSAGE( STATUS "Inlcuded NIfTI lib building information." )
OPTION
(
BUILD_SHARED_LIBS
"Toggle building shared libraries"
ON
)
# Zlib support currently
only
on
L
in
ux
IF
(
CMAKE_HOST_SYSTEM MATCHES
L
in
ux
)
ADD_DEFINITIONS
(
-DHAVE_ZLIB
)
# Zlib support currently
not
on
W
in
dows
IF
(
NOT
(
CMAKE_HOST_SYSTEM MATCHES
W
in
dows
)
)
ADD_DEFINITIONS
(
-DHAVE_ZLIB
)
ENDIF
()
SET
(
ZNZLIB_SRC znzlib.c
)
...
...
@@ -15,6 +15,11 @@ SET(NIFTI_ZNZLIB_NAME ${PACKAGE_PREFIX}znz)
ADD_LIBRARY
(
${
NIFTI_ZNZLIB_NAME
}
${
ZNZLIB_SRC
}
)
TARGET_LINK_LIBRARIES
(
${
NIFTI_ZNZLIB_NAME
}
${
NIFTI_ZLIB_LIBRARIES
}
)
# Zlib support currently not on Windows
IF
(
NOT
(
CMAKE_HOST_SYSTEM MATCHES Windows
)
)
TARGET_LINK_LIBRARIES
(
${
NIFTI_ZNZLIB_NAME
}
z
)
ENDIF
()
# Zlib support currently only on Linux
IF
(
CMAKE_HOST_SYSTEM MATCHES Linux
)
TARGET_LINK_LIBRARIES
(
${
NIFTI_ZNZLIB_NAME
}
z
)
...
...
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