Skip to content

Commit

Permalink
Fix cmake build on Windows.
Browse files Browse the repository at this point in the history
Introduced in e6ecace
  • Loading branch information
fancycode committed Aug 16, 2019
1 parent 056abc5 commit 8eb8048
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ configure_file (
"${PROJECT_SOURCE_DIR}/libheif/heif_version.h"
)

add_definitions(-Wall)
add_definitions(-Werror)
add_definitions(-Wsign-compare)
add_definitions(-Wconversion)
add_definitions(-Wno-sign-conversion)
add_definitions(-Wno-error=conversion)
add_definitions(-Wno-error=unused-parameter)
add_definitions(-Wno-error=deprecated-declarations)
if(NOT MSVC)
add_definitions(-Wall)
add_definitions(-Werror)
add_definitions(-Wsign-compare)
add_definitions(-Wconversion)
add_definitions(-Wno-sign-conversion)
add_definitions(-Wno-error=conversion)
add_definitions(-Wno-error=unused-parameter)
add_definitions(-Wno-error=deprecated-declarations)
endif()

if(CMAKE_COMPILER_IS_GNUCXX)
set(GCC 1)
Expand Down

0 comments on commit 8eb8048

Please sign in to comment.