]> git.cworth.org Git - apitrace/commitdiff
Fix QJSON linkage on Windows builds.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 30 Oct 2012 15:05:46 +0000 (15:05 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 30 Oct 2012 15:05:46 +0000 (15:05 +0000)
Re-add the empy QJSON_EXPORT define, but this time ensure it is defined
when compiling qapitrace as well.

CMakeLists.txt

index f5b7c34d0bb6fe914e1abc62645133711cb87089..83490d56b3d7e17c2230a6ccd0c7d9c725e25acc 100644 (file)
@@ -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)