Skip to content

Commit

Permalink
add variable for checking the presence of at least
Browse files Browse the repository at this point in the history
1 wrapped file
  • Loading branch information
Daniele Giunchi committed Oct 11, 2010
1 parent a4af145 commit aba2aaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMake/mafMacroWrapTargetFiles.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ MACRO(mafMacroWrapTargetFiles)
# Make sure the variable is cleared
SET(file_to_wrap )
SET(wrap_list )
set(WRAP_LIST_FOUND )

IF(EXISTS ${filepath})
# Let's make sure target_wrap_files contains only strings
Expand All @@ -102,6 +103,7 @@ MACRO(mafMacroWrapTargetFiles)
list(LENGTH wrap_list length)

if(SWIG_FOUND AND ${length})
set(WRAP_LIST_FOUND 1)
set(${PROJECT_NAME}_WRAP_DEPENDS ${wrap_list})

SET(i_filepath ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.i)
Expand Down

0 comments on commit aba2aaf

Please sign in to comment.