Skip to content

Commit cf1a137

Browse files
committed
Fixes for building on windows
1 parent 8e5adeb commit cf1a137

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ if (PKG_CONFIG_FOUND)
1515
endif()
1616

1717
add_subdirectory(nativefiledialog-extended)
18+
if(MINGW64_NT-10.0-19045)
19+
link_libraries(nfd ole32 uuid shell32)
20+
else()
21+
link_libraries(nfd)
22+
endif()
1823

1924
include(GResource)
2025
gresource(${CMAKE_CURRENT_SOURCE_DIR}
@@ -56,5 +61,4 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
5661
mbedcrypto
5762
mbedx509
5863
curl
59-
nfd
60-
)
64+
)

0 commit comments

Comments
 (0)