Correctly define the required symbols to export the dll symbols under MSVC. Problem described in issue #461
This commit is contained in:
parent
153ea8ad7d
commit
bd672bbdc8
@ -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:/")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user