Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fknfilewalker committed Jul 22, 2024
1 parent 708641b commit d0715aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ target_include_directories(${BUILD_TARGET} PRIVATE ${PROJECT_SOURCE_DIR})
target_link_libraries(${BUILD_TARGET} ${TINYEXR_EXT_LIBRARIES} ${CMAKE_DL_LIBS})

# Increase warning level for clang.
IF (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT MSVC)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT MSVC)
set_source_files_properties(${TINYEXR_SOURCES} PROPERTIES COMPILE_FLAGS "-Weverything -Werror -Wno-padded -Wno-c++98-compat-pedantic -Wno-documentation -Wno-unused-member-function")
ENDIF ()
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 16)
set_source_files_properties(${TINYEXR_SOURCES} PROPERTIES COMPILE_FLAGS "-Wno-unsafe-buffer-usage")
endif()
endif ()

if (TINYEXR_BUILD_SAMPLE)

Expand Down

0 comments on commit d0715aa

Please sign in to comment.