# When building with ninja-multiconfig, build both debug and release by default
# When building with ninja-multiconfig, build both debug and release by default
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
if(CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
set(CMAKE_CROSS_CONFIGS "Debug;Release")
set(CMAKE_CROSS_CONFIGS "Debug;Release")
...
@@ -219,6 +221,7 @@ if(MSVC)
...
@@ -219,6 +221,7 @@ if(MSVC)
endif()
endif()
find_package(ZLIB QUIET)
find_package(ZLIB QUIET)
if(NOT ZLIB_FOUND)
if(NOT ZLIB_FOUND)
message(FATAL_ERROR "The zlib development files were not found you this system, please install them and try again (hint: on debian/ubuntu use apt-get install zlib1g-dev)")
message(FATAL_ERROR "The zlib development files were not found you this system, please install them and try again (hint: on debian/ubuntu use apt-get install zlib1g-dev)")
endif()
endif()
...
@@ -496,15 +499,7 @@ if(PROJECT_IS_TOP_LEVEL OR BUILD_FOR_CCP4)
...
@@ -496,15 +499,7 @@ if(PROJECT_IS_TOP_LEVEL OR BUILD_FOR_CCP4)