cmake source configuration fails on include ( ${CGAL_USE_FILE} ) in CMakeLists.txt with include called with wrong number of arguments. include() only takes one file..
Ahoj,
I am trying to build this on Artix GNU/Linux (rolling release).
I run the following cmake command:
cmake -S terragear -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
cmake run fails with
[...]
-- Found CGAL 6.0
CMake Error at CMakeLists.txt:127 (include):
include called with wrong number of arguments. include() only takes one
file.
[...]
CMake Error at src/Lib/terragear/CMakeLists.txt:4 (include):
include called with wrong number of arguments. include() only takes one
file.
File CMakeLists.txt has at line 127 the following content:
include ( ${CGAL_USE_FILE} )
and file src/Lib/terragear/CMakeLists.txt has at line 4 the following content:
include( ${CGAL_USE_FILE} )
So the variable CGAL_USE_FILE seems to errorneously gets set to have more than one file.
Complete terminal output of the cmake run:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Targeting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Found GMP: /lib/libgmp.so
-- Found MPFR: /lib/libmpfr.so
CMake Warning (dev) at /usr/lib/cmake/CGAL/CGAL_SetupBoost.cmake:20 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/lib/cmake/CGAL/CGAL_SetupCGALDependencies.cmake:48 (include)
/usr/lib/cmake/CGAL/CGALConfig.cmake:169 (include)
CMakeLists.txt:116 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake (found suitable version "1.88.0", minimum required is "1.72")
-- Boost include dirs: /usr/include
-- Boost libraries:
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Using gcc version 4 or later. Adding -frounding-math
CMake Warning (dev) at /usr/lib/cmake/CGAL/CGAL_SetupCGAL_CoreDependencies.cmake:51 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/lib/cmake/CGAL/CGAL_setup_target_dependencies.cmake:5 (CGAL_setup_CGAL_Core_dependencies)
/usr/lib/cmake/CGAL/CGALConfig.cmake:192 (CGAL_setup_target_dependencies)
CMakeLists.txt:116 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found CGAL 6.0
CMake Error at CMakeLists.txt:127 (include):
include called with wrong number of arguments. include() only takes one
file.
CMake Warning (dev) at CMakeLists.txt:131 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake (found version "1.88.0") found components: system thread
-- Found ZLIB: /usr/lib/libz.so (found suitable version "1.3.1", minimum required is "1.2.11")
-- SimGear include directory: /usr/include
-- found SimGear version: 2024.1.1 (needed 2020.3.0 or higher)
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")
-- looking for static SimGear libraries
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Found SimGear: optimized;/usr/lib/libSimGearScened.so;debug;/usr/lib/libSimGearScened.so;optimized;/usr/lib/libSimGearCored.so;debug;/usr/lib/libSimGearCored.so;optimized;/usr/lib/libSimGearCored.so;debug;/usr/lib/libSimGearCored.so (Required is at least version "2020.3.0")
-- Found GDAL: /usr/lib/libgdal.so (found suitable version "3.11.3", minimum required is "2.0.0")
-- Found TIFF: /usr/lib/libtiff.so (found version "4.7.0")
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for rint
-- Looking for rint - not found
CMake Error at src/Lib/terragear/CMakeLists.txt:4 (include):
include called with wrong number of arguments. include() only takes one
file.
-- Configuring incomplete, errors occurred!
- CMake version: 4.0.3
-
cgalversion: 6.0.1
Regards!
Edited by Drei Eck