Skip to content

Commit 6007385

Browse files
CMakeLists.txt Compatibility with MinGW on windows
1 parent 15aaa21 commit 6007385

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1212

1313

1414
# Enable simultaneous compilation of source files.
15-
if(WIN32)
15+
if(MSVC)
1616
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
1717
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp")
1818
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4250")
19-
endif(WIN32)
19+
endif(MSVC)
2020

2121
OPTION(BUILD_AS_SHARED_LIBS "Build all the libraries as shared" OFF)
2222
if (BUILD_AS_SHARED_LIBS)

0 commit comments

Comments
 (0)