Skip to content

Commit

Permalink
Updates cmake file to allow warnings and suppress Qt deprecated warni…
Browse files Browse the repository at this point in the history
…ngs (for the upcoming release).
  • Loading branch information
dangvd committed Jan 1, 2023
1 parent cc59dcc commit b01709c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ project(crystal-dock)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options(-Wall -Werror)
add_definitions(-DQT_DEPRECATED_WARNINGS)

# During development, uncomment this.
# add_compile_options(-Wall -Werror)
# During development, comment this.
add_definitions(-DQT_NO_DEPRECATED_WARNINGS)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
Expand Down

0 comments on commit b01709c

Please sign in to comment.