mirror of https://github.com/CGAL/cgal
Do not add in link_libraries in header only mode.
This commit is contained in:
parent
3b6bcc10e4
commit
b507b12d4f
|
|
@ -53,11 +53,13 @@ if(NOT USE_CGAL_FILE_INCLUDED)
|
||||||
include_directories ( SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS} )
|
include_directories ( SYSTEM ${CGAL_3RD_PARTY_INCLUDE_DIRS} )
|
||||||
add_definitions ( ${CGAL_3RD_PARTY_DEFINITIONS} ${CGAL_DEFINITIONS} )
|
add_definitions ( ${CGAL_3RD_PARTY_DEFINITIONS} ${CGAL_DEFINITIONS} )
|
||||||
|
|
||||||
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
|
||||||
link_libraries ( ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
|
||||||
|
|
||||||
if (CGAL_HEADER_ONLY)
|
if (CGAL_HEADER_ONLY)
|
||||||
add_definitions(-DCGAL_HEADER_ONLY)
|
add_definitions(-DCGAL_HEADER_ONLY)
|
||||||
|
link_directories ( ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||||
|
link_libraries ( ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
else()
|
||||||
|
link_directories ( ${CGAL_LIBRARIES_DIR} ${CGAL_3RD_PARTY_LIBRARIES_DIRS} )
|
||||||
|
link_libraries ( ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue