CMake - initial cache

Hi

Our project is based on CMake.

When we invoke cmake, we always pass the initial cache file using the -C command line argument. It won't work without it because some variables are not set.

When I tried to import to CLion (CL-140.1221.2 on Linux) it obviously reports the same erros as I run cmake without the -C option.

Is there any way to make this work?

Thank you
Martin

2 comments
Comment actions Permalink

I was able to fix this by placing the "include" command in the root CMakeLists.txt file.

Still curious if there is another way around this.

Thanks
Martin

0
Comment actions Permalink

Not yet, but we plan to add it

0

Please sign in to leave a comment.