The CMake project generated by UnrealBuildTool does not specify the (correct) directory for files generated for game classes. This happens when generating the CMake files from within the editor using CLion code accessor and then compiling the project from within the editor.
When tested in 4.19.2 (CL-4033788) neither of the specified paths were generated.
Results: Code generated for game classes is placed in `<ProjectDir>/Intermediate/Build/Linux/<SomeId>/UE4Editor/Inc/<ProjectName>`. However, the CMake project () specifies `<ProjectDir>/Intermediate/Build/Linux/<SomeId>/<ProjectName>Editor/Inc/<ProjectName>` instead of the one mentioned before as an include path. When opening the project in CLion this results in the IDE being unable to find the projects "*.generated.h" headers.
Expected: Opening the project in CLion doesn't lead to "Header not found"-type errors.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-63664 in the post.
4 |
Component | UE - Platform - Linux |
---|---|
Affects Versions | 4.20 |
Created | Sep 4, 2018 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |