Explorar el Código

BUG: Utility DGraph is now using ctkDependencyGraph class without any symbol exported

This should fix compilation problem on windows where it complains about local defined symbol
Jean-Christophe Fillion-Robin hace 15 años
padre
commit
3c0b3ce56d
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 4 0
      Libs/Core/ctkDependencyGraph.h
  2. 3 0
      Utilities/DGraph/CMakeLists.txt

+ 4 - 0
Libs/Core/ctkDependencyGraph.h

@@ -26,7 +26,11 @@
 #include <QList>
 
 // CTK includes
+#if !defined(NO_SYMBOL_EXPORT)
 #include "CTKCoreExport.h"
+#else
+#define CTK_CORE_EXPORT
+#endif
 
 class CTK_CORE_EXPORT ctkDependencyGraph
 {

+ 3 - 0
Utilities/DGraph/CMakeLists.txt

@@ -20,6 +20,9 @@ INCLUDE_DIRECTORIES(
   ${CTK_SOURCE_DIR}/Libs/Core
   )
 
+# Do not export symbol in ctkDependencyGraph class
+ADD_DEFINITIONS(-DNO_SYMBOL_EXPORT)
+
 # Configure CTKCoreExport.h
 SET(MY_EXPORT_HEADER_PREFIX CTKCore)
 SET(MY_LIBRARY_EXPORT_DIRECTIVE CTK_CORE_EXPORT)