From bd672bbdc8d8c15da368685ec1962c7774f4e9d9 Mon Sep 17 00:00:00 2001 From: CHAIKHA DOUAIHY Mehrez Date: Sun, 2 Sep 2018 15:06:34 +0200 Subject: [PATCH] Correctly define the required symbols to export the dll symbols under MSVC. Problem described in issue #461 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d463906..9a3cefe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,7 +140,7 @@ endif() if(WIN32) if(BUILD_SHARED_LIBS) - add_definitions(-D${PROJECT_NAME}_DLL) # use or build Windows DLL + add_definitions(-DYAML_CPP_DLL) # use or build Windows DLL endif() if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "C:/")