Skip to content
Snippets Groups Projects
Commit 7f4f7fc2 authored by Elias Pipping's avatar Elias Pipping
Browse files

Make compile with zlib in a nonstandard location

parent 0ee2c3af
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ if(ZLIB_FOUND)
# register package flags is not supported in CMake with Dune 2.3
if(NOT (("${DUNE_COMMON_VERSION_MAJOR}" STREQUAL "2")
AND ("${DUNE_COMMON_VERSION_MINOR}" STREQUAL "3")))
dune_register_package_flags(INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS} LIBRARIES ${ZLIB_LIBRARIES})
dune_register_package_flags(INCLUDE_DIRS ${ZLIB_INCLUDE_DIR} LIBRARIES ${ZLIB_LIBRARIES})
endif()
endif()
......
......@@ -24,6 +24,8 @@ target_link_libraries(dunealugrid ${ZOLTAN_LIBRARIES})
set_property(TARGET dunealugrid APPEND PROPERTY
INCLUDE_DIRECTORIES "${ZOLTAN_INCLUDE_DIRS}")
endif()
set_property(TARGET dunealugrid APPEND PROPERTY
INCLUDE_DIRECTORIES "${ZLIB_INCLUDE_DIR}")
# register alu grid to all pkg flags
dune_register_package_flags(LIBRARIES "${DUNE_ALUGRID_LIBRARY}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment