Identifying & restricting NCS version in CMakeLists.txt

Hi,

My project is set up as out-of-tree using NCS v2.0.0. I would like to restrict the NCS version such that it will throw a compile-time error if a non-matching version of NCS is used to build.

Is there a convenient way to do this with cmake?

Related