CLion changes its Project Directory after loading the CMake file
已回答
Hi,
I am trying to develop with Zephyr on the CLion but when I load the CMake file it always changes my project so I see any other folders but not the folder I originally opened.
Here the before Picture
And after loading:
Also Toolchain and CMake Settings:
And the CMakeLists.txt
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
# Set the target board
set(BOARD nucleo_f103rb)
# Set the toolchain
set(ZEPHYR_TOOLCHAIN_VARIANT zephyr)
# Add source files
FILE(GLOB app_sources src/*.c)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)
target_sources(app PRIVATE src/main.c)
Thanks in advance for any help.
请先登录再写评论。
Hello!
Please open the registry (`Help | Find Action`, type "Registry...") and let us know if the clion.workspace.external.source.group.into.folders option is enabled.
If it's enabled, please disable this option, it should help.
Hi,
No it is disabled
Sorry for the delay in response. Please update CLion to the latest stable release (2023.2.1). How does the Project view look in this CLion version? Please check with the clion.workspace.external.source.group.into.folders option both enabled and disabled.
I'm on latest stable version and can confirm that I'm having the same problem. Any suggestions?
I've tried with the registry suggestion and nothing changes.
Hi Willian !
Have you tried disabling the clion.workspace.external.source.group.into.folders option in the registry (`Help | Find Action`, type "Registry...")? Does it help?
It doesn't!
While is nice to have my board directory at hand, everything else isn't doing any help.
The same on Clion Nova EAP
Hi all!
Feel free to comment or upvote the related issue in order to get updates - CPP-37708. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.