diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 353627e2..1b8e4cab 100755 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -50,12 +50,11 @@ set(expat_SRCS lib/xmltok_ns.c ) -if(WIN32 AND BUILD_shared) - set(expat_SRCS ${expat_SRCS} lib/libexpat.def) -endif(WIN32 AND BUILD_shared) - if(BUILD_shared) set(_SHARED SHARED) + if(WIN32) + set(expat_SRCS ${expat_SRCS} lib/libexpat.def) + endif(WIN32) else(BUILD_shared) set(_SHARED STATIC) endif(BUILD_shared)