A CMakeLists.txt needs to link its targets explicitely, even if

${CGAL_USE_FILE} is included.
This commit is contained in:
Laurent Rineau 2008-09-08 14:05:12 +00:00
parent d5d18a2531
commit 3ca7367868
1 changed files with 5 additions and 1 deletions

View File

@ -26,4 +26,8 @@ add_executable ( alpha_shapes_2
Qt_widget_toolbar.cpp Qt_widget_toolbar.moc
Qt_widget_toolbar_layers.cpp Qt_widget_toolbar_layers.moc )
if ( AUTO_LINK_ENABLED )
target_link_libraries( alpha_shapes_2 ${CGAL_3RD_PARTY_LIBRARIES} )
else()
target_link_libraries( alpha_shapes_2 ${CGAL_3RD_PARTY_LIBRARIES} ${CGAL_LIBRARIES} )
endif()