This commit is contained in:
Uwe Rathmann 2023-04-05 17:42:14 +02:00
parent 0c89c922cc
commit 91f9e39bcb
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# This file may be used under the terms of the QSkinny License, Version 1.0
############################################################################
cmake_minimum_required(VERSION 3.16.3) # unclear - TODO
cmake_minimum_required(VERSION 3.16.3)
macro(qsk_setup_options)

View File

@ -34,6 +34,9 @@ macro(qsk_enable_pedantic_flags)
add_compile_definitions(QT_STRICT_ITERATORS)
endif()
# note: setting CMAKE_CXX_COMPILER without CMAKE_CXX_COMPILER_ID
# will fail here
if ( ( CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
OR ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) )
@ -113,6 +116,8 @@ macro(qsk_initialize_build_flags)
if ( NOT MSVC )
add_compile_options( -Wall -Wextra )
else
add_compile_options(/W4 /WX)
endif()
endmacro()