Skip to content

Commit 8a0b97e

Browse files
authored
CYGWIN needs to be named OS_CYGWIN_NT in config.h
1 parent f2d010d commit 8a0b97e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/prebuild.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ if (${COMPILER_ID} STREQUAL "GNU")
9999
endif ()
100100

101101
string(TOUPPER ${ARCH} UC_ARCH)
102-
103102
file(WRITE ${TARGET_CONF_TEMP}
104103
"#define OS_${HOST_OS}\t1\n"
105104
"#define ARCH_${UC_ARCH}\t1\n"
@@ -111,6 +110,10 @@ if (${HOST_OS} STREQUAL "WINDOWSSTORE")
111110
file(APPEND ${TARGET_CONF_TEMP}
112111
"#define OS_WINNT\t1\n")
113112
endif ()
113+
if (${HOST_OS} STREQUAL CYGWIN)
114+
file(APPEND ${TARGET_CONF_TEMP}
115+
"#define OS_CYGWIN_NT\t1\n")
116+
endif ()
114117

115118
# f_check
116119
if (NOT NOFORTRAN)

0 commit comments

Comments
 (0)