1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-05 03:19:18 -04:00
ports/graphics/openexr-website-docs/files/patch-CMakeLists.txt
Matthias Andree b22709d5c5 graphics/openexr-website-docs: fix build with v3.2.4 changes
- share the distfiles directory and the NO_WRKSUBDIR
- update patch for updated upstream CMakeLists.txt infrastructure
2024-04-01 19:36:02 +02:00

72 lines
2.5 KiB
Text

--- CMakeLists.txt.orig 2024-03-25 18:27:30 UTC
+++ CMakeLists.txt
@@ -81,8 +81,6 @@ include(cmake/OpenEXRSetup.cmake)
include(cmake/LibraryDefine.cmake)
include(cmake/OpenEXRSetup.cmake)
-add_subdirectory(cmake)
-message(STATUS "Configure ${OPENEXR_PACKAGE_NAME}, library API version: ${OPENEXR_LIB_VERSION}")
# Hint: This can be set to enable custom find_package
# search paths, probably best to set it when configuring
@@ -99,15 +97,6 @@ endif()
enable_testing()
endif()
-# Include these two modules without enable/disable options
-if (OPENEXR_BUILD_LIBS)
- add_subdirectory(src/lib)
-endif()
-
-if(OPENEXR_BUILD_TOOLS AND OPENEXR_BUILD_LIBS)
- add_subdirectory(src/bin)
-endif()
-
# Tell CMake where to find the OpenEXRConfig.cmake file. Makes it possible to call
# find_package(OpenEXR) in downstream projects
set(OpenEXR_DIR "${CMAKE_CURRENT_BINARY_DIR}/cmake" CACHE PATH "" FORCE)
@@ -115,10 +104,6 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake/OpenEXRT
# Can be empty since we already defined the targets in add_subdirectory
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake/OpenEXRTargets.cmake" "# Dummy file")
-if(OPENEXR_BUILD_EXAMPLES AND OPENEXR_BUILD_LIBS)
- add_subdirectory( src/examples )
-endif()
-
# If you want to use ctest to configure, build and
# upload the results, cmake has builtin support for
# submitting to CDash, or any server who speaks the
@@ -141,33 +126,10 @@ endif()
#set(CTEST_DROP_SITE "open.cdash.org")
#set(CTEST_DROP_LOCATION "/submit.php?project=MyProject")
#set(CTEST_DROP_SITE_CDASH TRUE)
-include(CTest)
-if(BUILD_TESTING AND OPENEXR_BUILD_LIBS AND NOT OPENEXR_IS_SUBPROJECT)
- add_subdirectory(src/test)
-endif()
-
# Including this module will add a `clang-format` target to the build if
# the clang-format executable can be found. Only do this if we are top level
-if(NOT OPENEXR_IS_SUBPROJECT)
- include(cmake/clang-format.cmake)
-endif()
-
-option(OPENEXR_INSTALL_DOCS "Set ON to install tool manpages")
-if (OPENEXR_INSTALL_DOCS AND NOT OPENEXR_IS_SUBPROJECT)
- add_subdirectory(docs)
-endif()
-
option(BUILD_WEBSITE "Set ON to build website source")
if (BUILD_WEBSITE AND NOT OPENEXR_IS_SUBPROJECT)
add_subdirectory(website)
-endif()
-
-if (OPENEXR_BUILD_LIBS AND NOT OPENEXR_IS_SUBPROJECT)
- # Even if not building the website, still make sure the website example code compiles.
- add_subdirectory(website/src)
-endif()
-
-if (OPENEXR_BUILD_PYTHON AND OPENEXR_BUILD_LIBS AND NOT OPENEXR_IS_SUBPROJECT)
- add_subdirectory(src/wrappers/python)
endif()