diff --git a/3rdparty/libmygpo-qt5/src/mygpo_export.h b/3rdparty/libmygpo-qt5/src/mygpo_export.h index d2a8c3a58..28980e2c6 100644 --- a/3rdparty/libmygpo-qt5/src/mygpo_export.h +++ b/3rdparty/libmygpo-qt5/src/mygpo_export.h @@ -25,7 +25,7 @@ #include -#ifndef MYGPO_EXPORT +#ifndef MYGPO_STATIC # if defined(MYGPO_MAKEDLL) /* We are building this library */ # define MYGPO_EXPORT Q_DECL_EXPORT @@ -33,6 +33,8 @@ /* We are using this library */ # define MYGPO_EXPORT Q_DECL_IMPORT # endif +#else +# define MYGPO_EXPORT #endif #endif // MYGPO_EXPORT_H diff --git a/CMakeLists.txt b/CMakeLists.txt index 7309e5b85..59617dfa4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -406,6 +406,7 @@ if(LIBMYGPO_QT5_FOUND) set(MYGPOQT5_LIBRARIES ${LIBMYGPO_QT5_LIBRARIES}) set(MYGPOQT5_INCLUDE_DIRS ${LIBMYGPO_QT5_INCLUDE_DIRS}) else() + add_definitions(-DMYGPO_STATIC) add_subdirectory(3rdparty/libmygpo-qt5) set(MYGPOQT5_LIBRARIES mygpo-qt5) set(MYGPOQT5_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libmygpo-qt5/src)