Skip to content

Commit cd96098

Browse files
committed
More MinGW fixes
1 parent cf1a137 commit cd96098

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ if (PKG_CONFIG_FOUND)
1515
endif()
1616

1717
add_subdirectory(nativefiledialog-extended)
18-
if(MINGW64_NT-10.0-19045)
18+
execute_process(COMMAND uname OUTPUT_VARIABLE uname)
19+
if(uname MATCHES "^MSYS" OR uname MATCHES "^MINGW")
1920
link_libraries(nfd ole32 uuid shell32)
2021
else()
2122
link_libraries(nfd)

0 commit comments

Comments
 (0)