vcpkg/ports/openexr/CMakeLists.txt.patch

87 lines
2.6 KiB
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
2018-03-10 19:36:22 +08:00
index 8c0a385..887ddf5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2018-03-10 19:36:22 +08:00
@@ -157,8 +157,8 @@ IF (HAVE_SYSCONF_NPROCESSORS_ONLN)
FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/OpenEXRConfig.h "#define OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN 1\n" )
ENDIF()
2018-03-10 19:36:22 +08:00
-SET (OPENEXR_LIBSUFFIX "")
-SET (ILMBASE_LIBSUFFIX "")
+SET (OPENEXR_LIBSUFFIX "" CACHE STRING "Default suffix for OpenEXR")
+SET (ILMBASE_LIBSUFFIX "" CACHE STRING "Default suffix for ILMBase")
IF (NAMESPACE_VERSIONING)
SET ( OPENEXR_LIBSUFFIX "-${OPENEXR_VERSION_API}" )
# assume same NAMESPACE_VERSION setting for IlmBase for now
@@ -188,32 +188,6 @@ SET_TARGET_PROPERTIES ( IlmImfUtil
2018-03-10 19:36:22 +08:00
SOVERSION 23
OUTPUT_NAME "IlmImfUtil${OPENEXR_LIBSUFFIX}"
)
-
-##########################
-# Example Code
-##########################
-ADD_SUBDIRECTORY ( IlmImfExamples )
-
-
-##########################
-# Tests
-##########################
-ADD_SUBDIRECTORY ( IlmImfTest )
-ADD_SUBDIRECTORY ( IlmImfUtilTest )
-ADD_SUBDIRECTORY ( IlmImfFuzzTest )
-
-
-##########################
-# Binaries / Utilities
-##########################
-ADD_SUBDIRECTORY ( exrheader )
-ADD_SUBDIRECTORY ( exrmaketiled )
-ADD_SUBDIRECTORY ( exrstdattr )
-ADD_SUBDIRECTORY ( exrmakepreview )
-ADD_SUBDIRECTORY ( exrenvmap )
-ADD_SUBDIRECTORY ( exrmultiview )
-ADD_SUBDIRECTORY ( exrmultipart )
-
##########################
# Installation
2018-03-10 19:36:22 +08:00
@@ -224,37 +198,3 @@ INSTALL ( FILES
DESTINATION
${CMAKE_INSTALL_PREFIX}/include/OpenEXR
)
2018-03-10 19:36:22 +08:00
-
-# Documentation
-INSTALL ( FILES
- doc/TechnicalIntroduction.pdf
- doc/ReadingAndWritingImageFiles.pdf
- doc/OpenEXRFileLayout.pdf
- doc/MultiViewOpenEXR.pdf
- doc/InterpretingDeepPixels.pdf
- doc/TheoryDeepPixels.pdf
- DESTINATION
- ${CMAKE_INSTALL_PREFIX}/share/doc/OpenEXR-${OPENEXR_VERSION}
- )
-
-# Examples
-INSTALL ( FILES
- IlmImfExamples/main.cpp
- IlmImfExamples/drawImage.cpp
- IlmImfExamples/rgbaInterfaceExamples.cpp
- IlmImfExamples/rgbaInterfaceTiledExamples.cpp
- IlmImfExamples/generalInterfaceExamples.cpp
- IlmImfExamples/lowLevelIoExamples.cpp
- IlmImfExamples/previewImageExamples.cpp
- IlmImfExamples/generalInterfaceTiledExamples.cpp
- IlmImfExamples/generalInterfaceTiledExamples.h
- IlmImfExamples/drawImage.h
- IlmImfExamples/rgbaInterfaceExamples.h
- IlmImfExamples/generalInterfaceExamples.h
- IlmImfExamples/rgbaInterfaceTiledExamples.h
- IlmImfExamples/lowLevelIoExamples.h
- IlmImfExamples/previewImageExamples.h
- IlmImfExamples/namespaceAlias.h
- DESTINATION
- ${CMAKE_INSTALL_PREFIX}/share/doc/OpenEXR-${OPENEXR_VERSION}/examples
- )