From: José Fonseca Date: Tue, 30 Oct 2012 15:05:46 +0000 (+0000) Subject: Fix QJSON linkage on Windows builds. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=68267d04b883070d6be7a582849d12131cc4b36d Fix QJSON linkage on Windows builds. Re-add the empy QJSON_EXPORT define, but this time ensure it is defined when compiling qapitrace as well. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f5b7c34..83490d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -224,6 +224,7 @@ endif () # - To make it easier to build the GUI on Windows and MacOSX, as there are no # binaries at all. if (QT4_FOUND) + add_definitions (-DQJSON_EXPORT=) add_subdirectory (thirdparty/qjson EXCLUDE_FROM_ALL) set (QJSON_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty) set (QJSON_LIBRARY_DIRS)