add_dependencies( Polygon_2 ${CGAL_LIBRARY} ) is useless

Ar the target Polygon_2 links with the CGAL library, CMake already creates
a dependency.
This commit is contained in:
Laurent Rineau 2012-07-31 16:18:17 +00:00
parent 601d2c5fca
commit a7a89c25b7
1 changed files with 0 additions and 2 deletions

View File

@ -58,8 +58,6 @@ if ( CGAL_FOUND AND CGAL_Qt4_FOUND AND QT4_FOUND )
# And with CGAL libraries # And with CGAL libraries
target_link_libraries( Polygon_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ) target_link_libraries( Polygon_2 ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
add_dependencies( Polygon_2 ${CGAL_LIBRARY} )
else() else()
message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt4, and will not be compiled.") message(STATUS "NOTICE: This demo requires CGAL, CGAL_Core, and Qt4, and will not be compiled.")