mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
Update for OpenEXR support due to vcpkg change
This commit is contained in:
parent
e1d8d29914
commit
411ed658e2
@ -110,7 +110,6 @@ if(ENABLE_OPENEXR_SUPPORT)
|
|||||||
DirectXTex/DirectXTexEXR.h)
|
DirectXTex/DirectXTexEXR.h)
|
||||||
|
|
||||||
set(LIBRARY_SOURCES ${LIBRARY_SOURCES}
|
set(LIBRARY_SOURCES ${LIBRARY_SOURCES}
|
||||||
DirectXTex/DirectXTexEXR.h
|
|
||||||
DirectXTex/DirectXTexEXR.cpp)
|
DirectXTex/DirectXTexEXR.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -156,7 +155,7 @@ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
|||||||
|
|
||||||
if(ENABLE_OPENEXR_SUPPORT)
|
if(ENABLE_OPENEXR_SUPPORT)
|
||||||
find_package(OpenEXR REQUIRED)
|
find_package(OpenEXR REQUIRED)
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE ${OPENEXR_INCLUDE_DIRS}/OpenEXR)
|
target_link_libraries(${PROJECT_NAME} PRIVATE OpenEXR::OpenEXR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if ((${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16") AND (NOT MINGW))
|
if ((${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16") AND (NOT MINGW))
|
||||||
@ -303,6 +302,7 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if((MSVC_VERSION GREATER_EQUAL 1928) AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
AND NOT ENABLE_OPENEXR_SUPPORT
|
||||||
AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)))
|
AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)))
|
||||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||||
target_compile_options(${t} PRIVATE "$<$<NOT:$<CONFIG:DEBUG>>:/guard:ehcont>")
|
target_compile_options(${t} PRIVATE "$<$<NOT:$<CONFIG:DEBUG>>:/guard:ehcont>")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user