Do not set CGAL_AUTO_LINK_ENABLED to TRUE in header only mode

This commit is contained in:
Clement Jamin 2015-10-14 15:11:07 +02:00 committed by Guillaume Damiand
parent c58ab58860
commit c7d3a58688
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ if ( NOT CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED )
message( STATUS "Targetting ${CMAKE_GENERATOR}")
if ( MSVC )
if ( MSVC AND NOT ENABLE_HEADER_ONLY )
message( STATUS "Target build enviroment supports auto-linking" )
set(CGAL_AUTO_LINK_ENABLED TRUE)
endif()