Skip to content

Commit

Permalink
Remove the compilation flags causon Windows as they cause a compile e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
luc-guyot-infomaniak committed Oct 2, 2024
1 parent 6eb8830 commit f095f9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ if (NOT DEFINED APPLICATION_ICON_NAME)
set(APPLICATION_ICON_NAME "${APPLICATION_SHORTNAME}")
endif ()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wconversion -Wsign-conversion -Weffc++ -Wimplicit-fallthrough -Wformat=2")

if (WIN32)
add_definitions(-D__USE_MINGW_ANSI_STDIO=1)
Expand All @@ -165,7 +164,7 @@ if (WIN32)
endif (WIN32)

if (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wconversion -Wsign-conversion -Weffc++ -Wimplicit-fallthrough -Wformat=2 -g")
if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
Expand Down

0 comments on commit f095f9d

Please sign in to comment.