mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
Documentation: Explain how to fix CMake errors in CLion
When importing the project in some CLion versions, the build profile can be created missing configurations, breaking code insight.
This commit is contained in:
parent
d0d5600f47
commit
1be6c12501
Notes:
github-actions[bot]
2024-11-01 16:23:36 +00:00
Author: https://github.com/OHermesJunior 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1be6c125017 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2057 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/sideshowbarker
1 changed files with 25 additions and 0 deletions
|
@ -28,6 +28,31 @@ A symptom of this not being configured correctly is CLion giving a warning for e
|
|||
To make code generated by CLion match the SerenityOS coding style, import the `CLionCodeStyleSettings.xml` from this directory as code style scheme via
|
||||
`Settings -> Editor -> Code Style -> C/C++ -> Scheme -> Cog icon -> Import Scheme...`
|
||||
|
||||
## CMake Error Messages
|
||||
|
||||
This section outlines common CMake error messages and provides guidance on how to resolve them.
|
||||
|
||||
### Unable to Find Package
|
||||
|
||||
You may encounter an error message similar to the following:
|
||||
|
||||
```
|
||||
CMake Error at AK/CMakeLists.txt:60 (find_package):
|
||||
By not providing "Findsimdutf.cmake" in CMAKE_MODULE_PATH, this project has
|
||||
requested CMake to find a package configuration file for "simdutf", but
|
||||
CMake could not locate one.
|
||||
...
|
||||
```
|
||||
|
||||
This error typically arises when CLion is not configured to use the correct build directory.
|
||||
|
||||
**Solution**: Ensure that CLion's build directory is set to the correct build directory for the selected profile.
|
||||
Navigate to `Settings -> Build, Execution, Deployment -> CMake` and in your selected profile, set the `Build directory` according to the profile:
|
||||
- Default -> "`Build/ladybird`"
|
||||
- Debug -> "`Build/ladybird-debug`"
|
||||
- Sanitizer -> "`Build/ladybird-sanitizers`"
|
||||
|
||||
|
||||
## Notes for WSL Users
|
||||
|
||||
### Toolchain
|
||||
|
|
Loading…
Reference in a new issue