diff --git a/Installation/cmake/modules/CGAL_Macros.cmake b/Installation/cmake/modules/CGAL_Macros.cmake index a552f1e5a43..8b51530e1bc 100644 --- a/Installation/cmake/modules/CGAL_Macros.cmake +++ b/Installation/cmake/modules/CGAL_Macros.cmake @@ -194,7 +194,7 @@ if( NOT CGAL_MACROS_FILE_INCLUDED ) macro( use_lib lib usefile) - if ( ${lib_found} ) + if ( ${lib}_FOUND ) if ( NOT ${lib}_SETUP ) # avoid double usage