Skip to content

Commit

Permalink
Remove the check for zlib.h.
Browse files Browse the repository at this point in the history
When co-compiling zlib and libsbml, zlib.h won't exist when checked by CMake, but it'll exist soon enough.
  • Loading branch information
luciansmith committed Aug 19, 2024
1 parent 1d87f52 commit 68d1e16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,11 @@ ${LIBSBML_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log")
endif()
endif()

if(NOT EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
message(FATAL_ERROR
"The include directory specified for zlib does not appear to be
valid. It should contain the file zlib.h, but it does not.")
endif()
# if(NOT EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
# message(FATAL_ERROR
#"The include directory specified for zlib does not appear to be
#valid. It should contain the file zlib.h, but it does not.")
# endif()

list(APPEND LIBSBML_FIND_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/FindZLIB.cmake")

Expand Down

0 comments on commit 68d1e16

Please sign in to comment.