I'm trying to work around CLion's inability to handle environment variables.
All of my CMake files start with lines like this:
cmake_minimum_required(VERSION 2.8.4)
include( $ENV{PROJECT_ROOT}/src/global_settings.cmake )
AssureOutOfSourceBuilds()
CLion does not know how to read the environment variable which provides the real path to the global include. As a result, CLion just completely fails to find anything outside of the current directory, as well as throwing errors.
Is there some way to specify a default value for an environment variable in CMake's cache? I believe CLion correctly reads the CMake cache.
Any other suggestions on how to get around CLion's current weakness? Thanks.