Skip to content

Commit 5ba9e66

Browse files
authored
Merge pull request #4 from mdouaihy/sharedlib_msvc
YAML_CPP_DLL is not correctly defined
2 parents 153ea8a + bd672bb commit 5ba9e66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ endif()
140140

141141
if(WIN32)
142142
if(BUILD_SHARED_LIBS)
143-
add_definitions(-D${PROJECT_NAME}_DLL) # use or build Windows DLL
143+
add_definitions(-DYAML_CPP_DLL) # use or build Windows DLL
144144
endif()
145145
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
146146
set(CMAKE_INSTALL_PREFIX "C:/")

0 commit comments

Comments
 (0)