diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b7dde6384f20bb9a53d8a8cec63f15517faa3d4b..8328f34e5016f9d80817a13c45f0a907e2c33801 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -190,6 +190,9 @@ list( APPEND cdi_unknown
   resource_unpack.h
 )
 
+# Support exporting all symbolds on Windows
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+
 add_library(cdilib
   ${cdi_src_files} ${cdi_unknown}
 #  INSTALL_HEADERS_LIST  cdi.h