Skip to content

Commit 609194a

Browse files
committed
CMakeLists: Removed Wno-cpp flag on windows compilation.
1 parent 74d1372 commit 609194a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,11 @@ message(STATUS "******************************************")
189189
message(STATUS "*** Compiler Flags ***")
190190
message(STATUS "******************************************")
191191

192-
message(STATUS "Adding: -Wno-cpp")
193-
set(DUNE_CXX_FLAGS "${DUNE_CXX_FLAGS} -Wno-cpp")
194-
set(DUNE_C_FLAGS "${DUNE_C_FLAGS} -Wno-cpp")
192+
if(NOT DUNE_OS_WINDOWS)
193+
message(STATUS "Adding: -Wno-cpp")
194+
set(DUNE_CXX_FLAGS "${DUNE_CXX_FLAGS} -Wno-cpp")
195+
set(DUNE_C_FLAGS "${DUNE_C_FLAGS} -Wno-cpp")
196+
endif(NOT DUNE_OS_WINDOWS)
195197

196198
message(STATUS "DUNE_CXX_FLAGS: ${DUNE_CXX_FLAGS}")
197199
message(STATUS "DUNE_C_FLAGS: ${DUNE_C_FLAGS}")

0 commit comments

Comments
 (0)