Skip to content

Crmc Usage Update, master branch (2021.11.15.)

While working on !48240 (merged), I bumped into this error message:

-- Configuring done
-- Generating done
CMake Error:
  Running

   '/opt/ninja/1.10.2/Linux-x86_64/ninja' '-C' '/atlas/krasznaa/ATLASRECTS-6680/build' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:206928: multiple rules generate x86_64-centos7-gcc8-opt/share/epos.initl [-w dupbuild=err]

  



CMake Generate step failed.  Build files cannot be regenerated correctly.

After some debugging I realised that this was because I was using CMake 3.20.2 in that build. And what I didn't realise in !48209 (merged) was that the NO_CACHE variable for find_file(...) was only introduced with CMake 3.21. 😦

I was considering for a moment how I could change the code in the packages to work correctly with older CMake versions, but all solutions that I could come up with, looked pretty ugly. So I thought this would be the simplest. To just make it explicit that we need at least 3.21 for these two packages.

Hopefully this will work fine with all nightlies. 🤔 I believe @aundrus has switched all master nightlies to 3.21.3 by now... (Which is why the nightlies didn't freak out about !48209 (merged).)

Pinging @fwinkl for information.

Merge request reports