Skip to content

Commit 1fecba2

Browse files
committed
_POSIX define is specific to mingw for signal.h
Unclear if it applies to all mingw (i.e. mingw-w64 & mingw) but this is my best guess. See #435 for further discussion.
1 parent 5417bd5 commit 1fecba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpi/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/mod)
22

3-
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
4-
add_definitions(-D_POSIX -DUSE_GCC)
3+
if (MINGW)
4+
add_definitions(-D_POSIX)
55
endif()
66

77
if (NOT MPI_C_FOUND)

0 commit comments

Comments
 (0)