CMake Error: configure_file Problem Configuring File - with CLion

Viewed 1647

I am trying to setup my CLion on Windows with WSL, following the official tutorial: https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-clion.html

When setting up the Toolchains, and now in the editor, I am getting the same error after the identification of the C compiler and features, C++ compiler and features. The lines causing the error are always the same:

configure_file(
  ${CMAKE_ROOT}/Modules/CMakeCXXCompiler.cmake.in
  ${CMAKE_PLATFORM_INFO_DIR}/CMakeCXXCompiler.cmake
  @ONLY
)

enter image description here

I am using Windows Subsystem for Linux 2 with Ubuntu 20.04, GCC and G++ version 9.3.0.

Please help me diagnose the problem.

1 Answers
Related