Generating CMakeLists.txt on Linux leads to empty include_dirs() and empty add_definitions() declarations. Which in turn leads to project files that are generated by CMake (like Eclipse CDT) don’t include them as well and the indexer can’t resolve 99% of the needed stuff.
I tracked it down to WriteCMakeLists in CMakefileGenerator.cs - the loop over the CurProject.IntelliSenseIncludeSearchPaths is not executed because the list is empty (but it works in the codelite generator - which is very strange, because they share the same code relevant for filling it)
Also the codelite generator takes CurProject.IntelliSenseSystemIncludeSearchPaths into account - cmake does not - is there any particular reason behind this? Or just missing from the include paths?
No error output while generating the data:
mgerhardy@srv055198:~/dev/UnrealEngine$ ./GenerateProjectFiles.sh
Setting up Unreal Engine 4 project files...
+ xbuild Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.0 /p:Configuration=Development
+ mono Binaries/DotNET/UnrealBuildTool.exe -makefile -kdevelopfile -qmakefile -cmakefile -codelitefile
Using clang version '3.6.0' (string), 3 (major), 6 (minor), 0 (patch)
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Writing project files... 100%
My mono version:
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu4)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
My Linux version:
mgerhardy@srv055198:~/dev/UnrealEngine$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid