Commit b352814a authored by Thomas Branch's avatar Thomas Branch Committed by Albert Astals Cid
Browse files

Restrict GNUGXX compiler options

Fix compilation on MSVC:
cl : Command line error D 8004 : '/W' requires an argument

by restricting -W like compiler flags to GNUGXX

Differential Revision: https://phabricator.kde.org/D24581
parent 80105075
......@@ -46,7 +46,9 @@ ecm_add_app_icon(granatierSources ICONS ${ICONS_SRCS})
add_executable(granatier ${granatierSources})
target_compile_options(granatier PRIVATE -W -Wall -Wpedantic -Wextra -Wconversion -Wuninitialized)
if(CMAKE_COMPILER_IS_GNUCXX)
target_compile_options(granatier PRIVATE -W -Wall -Wpedantic -Wextra -Wconversion -Wuninitialized)
endif(CMAKE_COMPILER_IS_GNUCXX)
target_link_libraries(granatier
Qt5::Xml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment