Browse Source

Merge pull request #701 from commontk/fix-ctkMacroWrapPythonQt

BUG: ctkMacroWrapPythonQt: Fix handling of absolute input file paths
Jean-Christophe Fillion-Robin 8 years ago
parent
commit
18019aea0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMake/ctkMacroWrapPythonQt.cmake

+ 1 - 1
CMake/ctkMacroWrapPythonQt.cmake

@@ -112,7 +112,7 @@ macro(ctkMacroWrapPythonQt WRAPPING_NAMESPACE TARGET SRCS_LIST_NAME SOURCES IS_W
     if(NOT skip_wrapping)
 
       # compute the input filename
-      if(IS_ABSOLUTE FILE)
+      if(IS_ABSOLUTE ${FILE})
         set(TMP_INPUT ${FILE})
       else()
         set(TMP_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/${FILE})