flag to prevent blanking linking flags from being applied

This commit is contained in:
Thomas "elfprince13" Dickerson 2017-06-13 19:03:16 -04:00
parent 7cf7158c33
commit 0d13f433f7
1 changed files with 8 additions and 4 deletions

View File

@ -60,11 +60,15 @@ if(NOT USE_CGAL_FILE_INCLUDED)
if (CGAL_HEADER_ONLY)
add_definitions(-DCGAL_HEADER_ONLY)
link_directories ( ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
link_libraries ( ${CGAL_3RD_PARTY_LIBRARIES} )
if(NOT CGAL_NO_BLANKET_LINKING)
link_directories ( ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
link_libraries ( ${CGAL_3RD_PARTY_LIBRARIES} )
endif()
else()
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
link_libraries ( ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
if(NOT CGAL_NO_BLANKET_LINKING)
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
link_libraries ( ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
endif()
endif()
endif()