Skip to content

Commit e5495d2

Browse files
committed
Fix compilation issues under MinGW
1 parent e10b2ed commit e5495d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ include_directories(BEFORE ${PROJECT_SOURCE_DIR}/src/cpp)
146146
# require proper c++
147147
#add_definitions( "-Wall -ansi -pedantic" )
148148
# HDF5 uses long long which is not ansi
149-
if (WIN32)
149+
if (MSVC)
150150
# lots of warnings with cl.exe right now, use /W1
151151
add_definitions("/W1 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS /bigobj")
152-
else(WIN32)
152+
else(MSVC)
153153
add_definitions( "-Wall -Wno-unknown-pragmas -Wno-unused-function" )
154-
endif(WIN32)
154+
endif(MSVC)
155155

156156
add_subdirectory( cmake )
157157
add_subdirectory( src )

0 commit comments

Comments
 (0)