Correctly define the required symbols to export the dll symbols under MSVC. Problem described in issue #461

This commit is contained in:
CHAIKHA DOUAIHY Mehrez 2018-09-02 15:06:34 +02:00
parent 153ea8ad7d
commit bd672bbdc8

View File

@ -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:/")