Perform tests and make sure zlib works
MODIFY
3rdparty/CMakeLists.txt
3rdparty/CMakeLists.txt
@@ -35,6 +35,9 @@ update_git_submodule(./glm)
update_git_submodule(./freetype2)
update_git_submodule(./portable-file-dialogs)
+
+add_subdirectory(openssl openssl EXCLUDE_FROM_ALL)
+
# zlib (target is zlibstatic)
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
set(_OLD_SKIP_INSTALL_ALL ${SKIP_INSTALL_ALL})
@@ -75,8 +78,6 @@ if (UNIX)
endif()
add_subdirectory(shaderc shaderc EXCLUDE_FROM_ALL)
-add_subdirectory(openssl openssl EXCLUDE_FROM_ALL)
-
#manipulating libjpeg cmake options from within cmake script
#option(ENABLE_SHARED "jpeg-turbo" OFF)
#set(CMAKE_INSTALL_DOCDIR "${CMAKE_CURRENT_BINARY_DIR}/doc" CACHE PATH "For libjpeg-turbo" FORCE)

MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -186,6 +186,7 @@ option(IRR_BUILD_BULLET "Enable Bullet Physics building and integration?" OFF)
option(IRR_BUILD_DOCS "Enable building documentation?" ON)
set(THIRD_PARTY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/3rdparty")
+set(THIRD_PARTY_BINARY_DIR "${PROJECT_BINARY_DIR}/3rdparty")
execute_process(COMMAND git submodule init
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")

Perform tests and make sure zlib works