# 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")
...
@@ -121,7 +123,7 @@ if(WIN32)
...
@@ -121,7 +123,7 @@ if(WIN32)
add_definitions(-D _WIN32_WINNT=0x0501)
add_definitions(-D _WIN32_WINNT=0x0501)
endif()
endif()
# Man, this is 2024 we're living in...
# Man, this is 2024 we're living in...
add_definitions(-DNOMINMAX)
add_definitions(-DNOMINMAX)
# We do not want to write an export file for all our symbols...
# We do not want to write an export file for all our symbols...
...
@@ -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)