Description

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.

Steps to Reproduce
  1. Open the UE4 Editor and create a Basic Code Project
  2. Generate CMake project files (e.g. set editor source accessor to CLion or run ".../UnrealBuildTool.exe -cmakefiles -projec=".../MyProject.uproject" -game -engine -progress)
  3. Open project with CLion

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.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-63664 in the post.

4
Login to Vote

Won't Fix
ComponentUE - Platform - Linux
Affects Versions4.20
CreatedSep 4, 2018
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue