Skip to content

Commit

Permalink
LibJpeg: disable Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Jul 24, 2023
1 parent cb207b9 commit b3b49c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ThirdParty/libjpeg-9e/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ set_common_target_properties(LibJpeg)

target_include_directories(LibJpeg PUBLIC .)

target_link_libraries(LibJpeg PRIVATE Diligent-BuildSettings)
# Use special interface library NO_WERROR to add -Wno-error at the end of the command line.
# Using target_compile_options() adds it before options of the linked libraries.
target_link_libraries(LibJpeg PRIVATE Diligent-BuildSettings NO_WERROR)

# If libjpeg-turbo is also present in the project, the following symbols will be
# defined multiple times and produce linker errors. To avoid this, we rename them.
Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/libtiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if(MSVC)
endif()
endif(MSVC)

# Use interface libarary to add -Wno-error at the end of the command line.
# Use special interface library NO_WERROR to add -Wno-error at the end of the command line.
# Using target_compile_options() adds it before options of the linked libraries.
target_link_libraries(LibTiff PRIVATE Diligent-BuildSettings NO_WERROR)

Expand Down

0 comments on commit b3b49c1

Please sign in to comment.