Explorar o código

Clear KIT_PYTHONQT_SRCS variable before invoking ctkMacroWrapPythonQt

Since ctkMacroWrapPythonQt update the content of the variable
passed by name, it's important to make sure this one is empty.
Jean-Christophe Fillion-Robin %!s(int64=14) %!d(string=hai) anos
pai
achega
1443532143
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      CMake/ctkMacroBuildLib.cmake

+ 1 - 0
CMake/ctkMacroBuildLib.cmake

@@ -167,6 +167,7 @@ MACRO(ctkMacroBuildLib)
     )
 
   IF(CTK_WRAP_PYTHONQT_LIGHT OR CTK_WRAP_PYTHONQT_FULL)
+    set(KIT_PYTHONQT_SRCS) # Clear variable
     ctkMacroWrapPythonQt("org.commontk" ${lib_name}
       KIT_PYTHONQT_SRCS "${MY_SRCS}" ${CTK_WRAP_PYTHONQT_FULL})
     ADD_LIBRARY(${lib_name}PythonQt STATIC ${KIT_PYTHONQT_SRCS})