Skip to content

Default C++ standard to 17

Wouter Deconinck requested to merge wdconinc-master-patch-80254 into master

To get around the following, which I don't know why it seems to work fine in CI...

[wdconinc@beluga3 NPDet]$ cat << EOF | ../eic-shell 
source /opt/detector/setup.sh
cmake -Bbuild -S.
EOF

-- The CXX compiler identification is GNU 10.2.1
-- 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
-- Found podio: /usr/local/lib/cmake/podio/podioConfig.cmake (Required is at least version "0.11.0") 
CMake Warning (dev) at CMakeLists.txt:38 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Environment variable DD4hep_ROOT is set to:

    /usr/local

  For compatibility, CMake is ignoring the variable.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Including DD4hepBuild.cmake
-- Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0")  
CMake Warning (dev) at /usr/local/cmake/DD4hepBuild.cmake:759 (try_compile):
  try_compile given unknown argument "False".
Call Stack (most recent call first):
  /usr/local/cmake/DD4hepConfig.cmake:53 (DD4HEP_SETUP_BOOST_TARGETS)
  CMakeLists.txt:38 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /lustre03/project/6061913/wdconinc/EIC/NPDet/build/try/CMakeFiles/CMakeTmp/CMakeLists.txt:16 (add_executable):
  CXX_STANDARD is set to invalid value 'CXX_EXTENSIONS'


CMake Error at /usr/local/cmake/DD4hepBuild.cmake:759 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /usr/local/cmake/DD4hepConfig.cmake:53 (DD4HEP_SETUP_BOOST_TARGETS)
  CMakeLists.txt:38 (find_package)


-- Configuring incomplete, errors occurred!
See also "/lustre03/project/6061913/wdconinc/EIC/NPDet/build/CMakeFiles/CMakeOutput.log".

Merge request reports