build: drop CGAL_HEADER_ONLY flag

Since cgal 5.3 the library is header only and flag is not needed. `BUILD_SHARED_LIBS` - same story.

See https://www.cgal.org/2021/07/06/cgal53/
This commit is contained in:
Andrej730
2026-09-08 17:32:37 +05:00
parent cb510519a1
commit 9fd3fd17ab
2 changed files with 1 additions and 4 deletions
-2
View File
@@ -1573,8 +1573,6 @@ if "cgal" in targets:
f"-DMPFR_LIBRARIES={Dependencies.get_install_dir('mpfr')}/lib/libmpfr.{LIBRARY_EXT}", f"-DMPFR_LIBRARIES={Dependencies.get_install_dir('mpfr')}/lib/libmpfr.{LIBRARY_EXT}",
f"-DMPFR_INCLUDE_DIR={Dependencies.get_install_dir('mpfr')}/include", f"-DMPFR_INCLUDE_DIR={Dependencies.get_install_dir('mpfr')}/include",
f"-DBoost_INCLUDE_DIR={Dependencies.get_install_dir('boost')}", f"-DBoost_INCLUDE_DIR={Dependencies.get_install_dir('boost')}",
f"-DCGAL_HEADER_ONLY=On",
f"-DBUILD_SHARED_LIBS=Off",
], ],
download_url="https://github.com/CGAL/cgal.git", download_url="https://github.com/CGAL/cgal.git",
download_name="cgal", download_name="cgal",
+1 -2
View File
@@ -637,8 +637,7 @@ IF NOT %ERRORLEVEL%==0 GOTO :Error
cd "%DEPENDENCY_DIR%" cd "%DEPENDENCY_DIR%"
git reset --hard git reset --hard
git apply --ignore-whitespace "%~dp0patches\cgal_no_zlib.patch" git apply --ignore-whitespace "%~dp0patches\cgal_no_zlib.patch"
call :RunCMake -DCMAKE_INSTALL_PREFIX="%INSTALL_DIR%\cgal" ^ call :RunCMake -DCMAKE_INSTALL_PREFIX="%INSTALL_DIR%\cgal"
-DCGAL_HEADER_ONLY=On
IF NOT %ERRORLEVEL%==0 GOTO :Error IF NOT %ERRORLEVEL%==0 GOTO :Error
call :BuildCMakeProject "%DEPENDENCY_DIR%\%BUILD_DIR%" %BUILD_CFG% call :BuildCMakeProject "%DEPENDENCY_DIR%\%BUILD_DIR%" %BUILD_CFG%
IF NOT %ERRORLEVEL%==0 GOTO :Error IF NOT %ERRORLEVEL%==0 GOTO :Error