travis has an old version of cmake?

This commit is contained in:
Thomas Fussell 2015-11-10 21:01:39 -05:00
parent 308e42c0a3
commit 3665334df9

View File

@ -68,9 +68,9 @@ SET(PUGIXML ../third-party/pugixml/src/pugixml.hpp ../third-party/pugixml/src/pu
if(SHARED) if(SHARED)
add_library(xlnt SHARED ${HEADERS} ${SOURCES} ${MINIZ} ${PUGIXML}) add_library(xlnt SHARED ${HEADERS} ${SOURCES} ${MINIZ} ${PUGIXML})
target_compile_definitions(xlnt PRIVATE XLNT_EXPORT=1)
add_definitions(-DXLNT_SHARED) add_definitions(-DXLNT_SHARED)
if(MSVC) if(MSVC)
target_compile_definitions(xlnt PRIVATE XLNT_EXPORT=1)
set_target_properties(xlnt PROPERTIES COMPILE_FLAGS "/wd\"4251\" /wd\"4275\"") set_target_properties(xlnt PROPERTIES COMPILE_FLAGS "/wd\"4251\" /wd\"4275\"")
endif() endif()
else() else()