use MSVC instead of Windows to detect symbols export flag

This commit is contained in:
Angel Sánchez 2020-02-06 10:37:35 +01:00
parent 5fe8614bec
commit 3450d1bae2

View File

@ -208,7 +208,7 @@ set(CAIRO_GOBJECT_SOURCES
# GObject support sources do not include header with export macro # GObject support sources do not include header with export macro
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows") if(MSVC)
set_source_files_properties( set_source_files_properties(
"../util/cairo-gobject/cairo-gobject-enums.c" "../util/cairo-gobject/cairo-gobject-enums.c"
"../util/cairo-gobject/cairo-gobject-structs.c" "../util/cairo-gobject/cairo-gobject-structs.c"