Skip to content
Browse files

Define QXT_STATIC in header so that parent projects use it.

  • Loading branch information...
1 parent db240b8 commit 8d5f643e2e2e11b45a3ce6d0e8044917bc274d9a @xhochy xhochy committed
View
2 thirdparty/qxt/qxtweb-standalone/CMakeLists.txt
@@ -15,7 +15,7 @@ ADD_DEFINITIONS( -Wall -O2 -DNDEBUG )
IF( NOT WIN32 )
ADD_DEFINITIONS( -fPIC )
ENDIF()
-ADD_DEFINITIONS( -DBUILD_QXT_CORE -DBUILD_QXT_WEB -DQXT_STATIC )
+ADD_DEFINITIONS( -DBUILD_QXT_CORE -DBUILD_QXT_WEB )
INCLUDE_DIRECTORIES( ${qxtweb} ${qxtcore} ${qxtnet} )
View
3 thirdparty/qxt/qxtweb-standalone/core/qxtglobal.h
@@ -51,6 +51,9 @@
#define QXT_DLLEXPORT DO_NOT_USE_THIS_ANYMORE
+// Define QXT_STATIC here so that the linker of projects that include the static library use the correct call method.
+#define QXT_STATIC
+
#if !defined(QXT_STATIC) && !defined(QXT_DOXYGEN_RUN)
# if defined(BUILD_QXT_CORE)
# define QXT_CORE_EXPORT Q_DECL_EXPORT

0 comments on commit 8d5f643

Please sign in to comment.
Something went wrong with that request. Please try again.