Просмотр исходного кода

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 лет назад: 15
Родитель
Сommit
3c0b3ce56d
2 измененных файлов с 7 добавлено и 0 удалено
  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)