|
From: <ai...@us...> - 2009-05-05 06:31:34
|
Revision: 9913
http://plplot.svn.sourceforge.net/plplot/?rev=9913&view=rev
Author: airwin
Date: 2009-05-05 06:31:25 +0000 (Tue, 05 May 2009)
Log Message:
-----------
Use -DUSINGDLL compile option for qt code that becomes part of libplplot for
the -DBUILD_SHARED_LIBS=ON -DENABLE_DYNDRIVERS=OFF case. This build system
bug fix allows qt_example (which uses symbols in qt) to link correctly
without symbol visibility issues (as tested by -fvisibility=hidden on
Linux).
Modified Paths:
--------------
trunk/src/CMakeLists.txt
Modified: trunk/src/CMakeLists.txt
===================================================================
--- trunk/src/CMakeLists.txt 2009-05-05 06:23:00 UTC (rev 9912)
+++ trunk/src/CMakeLists.txt 2009-05-05 06:31:25 UTC (rev 9913)
@@ -146,6 +146,13 @@
list(APPEND plplot${LIB_TAG}_LIB_SRCS ${QT_MOC_OUTFILES})
endif(MOC_OPTIONS)
endif(SOURCE_ROOT_NAME STREQUAL "qt")
+
+ # qt device driver code within libplplot has some symbols that need to be
+ # visible for qt_example in installed examples/c++ directory to link
+ # properly.
+ if(BUILD_SHARED_LIBS AND SOURCE_ROOT_NAME STREQUAL "qt")
+ set(${SOURCE_ROOT_NAME}_COMPILE_FLAGS "${${SOURCE_ROOT_NAME}_COMPILE_FLAGS} -DUSINGDLL")
+ endif(BUILD_SHARED_LIBS AND SOURCE_ROOT_NAME STREQUAL "qt")
if(${SOURCE_ROOT_NAME}_COMPILE_FLAGS)
set_source_files_properties(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|