If an Unreal Studio project is created on a different drive from where the Engine is installed, CLion is unable to successfully update CMake. The location for where Engine files can be found appears to be parsed incorrectly in this instance. In this case, a path similar to the following is created: C:/Users/<username>/Desktop/TestCLion3/D:/Epic Games/UE_4.21/Enterprise/Source/Runtime/Launch/Resources/EnterpriseVersion.h
If the project is created on the same drive as the Engine, a path similar to the following is created, which appears to work fine: D:/Unreal Projects/Current Issues/TestCLion1/../../../Epic Games/UE_4.22/Enterprise/Source/Runtime/Launch/Resources/EnterpriseVersion.h
REGRESSION:
No. The same behavior occurs in 4.21.2.
RESULT:
When CLion is finished updating CMake, the window will display an error:
CMake Error at CMakeLists.txt:56 (add_executable): Cannot find source file: C:/Users/<username>/Desktop/TestCLion3/D:/Epic Games/UE_4.21/Enterprise/Source/Runtime/Launch/Resources/EnterpriseVersion.h Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx CMake Error: CMake can not determine linker language for target: FakeTarget CMake Error: Cannot determine link language for target "FakeTarget".
EXPECTED:
CLion updates CMake successfully.
WORKAROUND:
Make sure the project is created on the same drive that the Engine is installed on.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-73176 in the post.
4 |
Component | UE - Foundation - Cpp Tools |
---|---|
Affects Versions | 4.22, 4.21.2 |
Created | Apr 22, 2019 |
---|---|
Resolved | Aug 27, 2021 |
Updated | Aug 27, 2021 |