-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMAKE Error during configuration of provided Examples #6229
Comments
daihengming
changed the title
CMAKE
CMAKE Error when configuration of provided Examples
Jan 10, 2022
daihengming
changed the title
CMAKE Error when configuration of provided Examples
CMAKE Error during configuration of provided Examples
Jan 10, 2022
Please update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Details
I've installed CGAL 5.3 by using vcpkg follow the instructions of
https://doc.cgal.org/latest/Manual/windows.html
and trying to compiling the example of Polygonal_surface_reconstruction
https://github.com/CGAL/cgal/releases/tag/v5.3.1
Additional dependencies has been set correctly, but during the configuration process i got
``
CMake Warning (dev) at C:/dev/vcpkg-master/installed/x64-windows/share/cgal/CGAL_add_test.cmake:288 (if):
Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
--help-policy CMP0064" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
TEST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
C:/dev/vcpkg-master/installed/x64-windows/share/cgal/CGAL_CreateSingleSourceCGALProgram.cmake:63 (cgal_add_test)
CMakeLists.txt:57 (create_single_source_cgal_program)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/dev/vcpkg-master/installed/x64-windows/share/cgal/CGAL_add_test.cmake:288 (if):
if given arguments:
Unknown arguments specified
Call Stack (most recent call first):
C:/dev/vcpkg-master/installed/x64-windows/share/cgal/CGAL_CreateSingleSourceCGALProgram.cmake:63 (cgal_add_test)
CMakeLists.txt:57 (create_single_source_cgal_program)
``
Environment
Corretated Issue
https://github.com/CGAL/cgal/issues/5857
i've found a similar issue, and tried to explicitly set the cmake policy to NEW with
cmake_policy(SET CMP0064 NEW)
in the CMakeLists.txt in the example.But the error is till coming out.
The text was updated successfully, but these errors were encountered: