From 871c7c7070648c38582b3e9e9f64c936598e310c Mon Sep 17 00:00:00 2001 From: Alexander Straub Date: Mon, 9 Jan 2023 18:06:28 +0100 Subject: [PATCH] Export all symbols on Windows to make available the path string conversion functions --- cmake/CompileOptions.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/CompileOptions.cmake b/cmake/CompileOptions.cmake index 863fc18..f924f5d 100644 --- a/cmake/CompileOptions.cmake +++ b/cmake/CompileOptions.cmake @@ -154,3 +154,8 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR "${CMAKE_SYSTEM_NAME}" MATCHES "L -pthread ) endif() + +# MSVC linker options +if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC") + set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +endif()