Skip to content

Commit

Permalink
Removed check for the presence of
Browse files Browse the repository at this point in the history
target_library.cmake file. If no file is found, no
external dependences are added to the project.
  • Loading branch information
elpablo committed Oct 14, 2010
1 parent 2758f50 commit 97cc45c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMake/mafMacroTargetLibraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ MACRO(mafMacroGetTargetLibraries varname)
SET(filepath ${CMAKE_CURRENT_SOURCE_DIR}/target_libraries.cmake)

# Check if "target_libraries.cmake" file exists
IF(NOT EXISTS ${filepath} )
MESSAGE(FATAL_ERROR "${filepath} doesn't exists !")
ENDIF()
# IF(NOT EXISTS ${filepath} )
# MESSAGE(FATAL_ERROR "${filepath} doesn't exists !")
# ENDIF()

# Make sure the variable is cleared
SET(target_libraries )


# Check if "target_libraries.cmake" file exists
# if the file does not exists, no external dependences are assigned.
IF(EXISTS ${filepath})
# Let's make sure target_libraries contains only strings
FILE(STRINGS "${filepath}" stringtocheck) # read content of 'filepath' into 'stringtocheck'
Expand Down

0 comments on commit 97cc45c

Please sign in to comment.