{"action":"created","issue":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/653","labels_url":"https://api.github.com/repos/urho3d/Urho3D/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/urho3d/Urho3D/issues/653/comments","events_url":"https://api.github.com/repos/urho3d/Urho3D/issues/653/events","html_url":"https://github.com/urho3d/Urho3D/issues/653","id":56698731,"number":653,"title":"Ninja build (cmake -GNinja) doesn't work since recent PCH changes","user":{"login":"dervus","id":1039540,"avatar_url":"https://avatars.githubusercontent.com/u/1039540?v=3","gravatar_id":"","url":"https://api.github.com/users/dervus","html_url":"https://github.com/dervus","followers_url":"https://api.github.com/users/dervus/followers","following_url":"https://api.github.com/users/dervus/following{/other_user}","gists_url":"https://api.github.com/users/dervus/gists{/gist_id}","starred_url":"https://api.github.com/users/dervus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dervus/subscriptions","organizations_url":"https://api.github.com/users/dervus/orgs","repos_url":"https://api.github.com/users/dervus/repos","events_url":"https://api.github.com/users/dervus/events{/privacy}","received_events_url":"https://api.github.com/users/dervus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/urho3d/Urho3D/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-05T17:07:08Z","updated_at":"2015-02-06T11:12:04Z","closed_at":"2015-02-06T05:51:39Z","body":"Everything is OK, when I use Make for building, but when I use Ninja, I have an error, which is repeated for multiple AssImp files:\r\n```\r\n[446/842] Building CXX object Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/ImporterRegistry.cpp.o\r\nFAILED: /usr/bin/c++   -DASSIMP_BUILD_BOOST_WORKAROUND -DGLEW_NO_GLU -DGLEW_STATIC -DHAVE_STDINT_H -DKNET_UNIX -DURHO3D_ANGELSCRIPT -DURHO3D_FILEWATCHER -DURHO3D_LOGGING -DURHO3D_NAVIGATION -DURHO3D_NETWORK -DURHO3D_OPENGL -DURHO3D_PHYSICS -DURHO3D_PROFILING -DURHO3D_SSE -DURHO3D_STATIC_DEFINE -DURHO3D_URHO2D -Wno-invalid-offsetof -ffast-math -m64 -O3 -DNDEBUG -Iinclude -Iinclude/Urho3D/ThirdParty -Iinclude/Urho3D/ThirdParty/Bullet -I../../Source/ThirdParty/Assimp/include -I../../Source/ThirdParty/Assimp/code/BoostWorkaround -I../../Source/ThirdParty/Assimp/contrib/unzip    -include AssimpPCH.h -MMD -MT Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/ImporterRegistry.cpp.o -MF Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/ImporterRegistry.cpp.o.d -o Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/ImporterRegistry.cpp.o -c ../../Source/ThirdParty/Assimp/code/ImporterRegistry.cpp\r\nIn file included from <command-line>:0:0:\r\n/usr/include/stdc-predef.h:59:1: fatal error: AssimpPCH.h: No such file or directory\r\n #endif\r\n ^\r\ncompilation terminated.\r\n```\r\n\r\nThere are build instructions, which CMake generates for this file in `build.ninja`:\r\n```\r\nbuild Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/ImporterRegistry.cpp.o: CXX_COMPILER ../../Source/ThirdParty/Assimp/code/ImporterRegistry.cpp || cmake_order_depends_target_Assimp\r\n  DEFINES = -DASSIMP_BUILD_BOOST_WORKAROUND -DGLEW_NO_GLU -DGLEW_STATIC -DHAVE_STDINT_H -DKNET_UNIX -DURHO3D_ANGELSCRIPT -DURHO3D_FILEWATCHER -DURHO3D_LOGGING -DURHO3D_NAVIGATION -DURHO3D_NETWORK -DURHO3D_OPENGL -DURHO3D_PHYSICS -DURHO3D_PROFILING -DURHO3D_SSE -DURHO3D_STATIC_DEFINE -DURHO3D_URHO2D\r\n  DEP_FILE = Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/ImporterRegistry.cpp.o.d\r\n  FLAGS = -Wno-invalid-offsetof -ffast-math -m64 -O3 -DNDEBUG -Iinclude -Iinclude/Urho3D/ThirdParty -Iinclude/Urho3D/ThirdParty/Bullet -I../../Source/ThirdParty/Assimp/include -I../../Source/ThirdParty/Assimp/code/BoostWorkaround -I../../Source/ThirdParty/Assimp/contrib/unzip    -include AssimpPCH.h\r\n  OBJECT_DIR = Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir\r\n  OBJECT_FILE_DIR = Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code\r\n  TARGET_COMPILE_PDB = Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/\r\n  TARGET_PDB = bin/tool/libAssimp.pdb\r\n```\r\n\r\n`../../` here is path to Urho's source root. `AssimpPCH.h` is actually located at `../../Source/ThirdParty/Assimp/code/AssimpPCH.h`, and there is no copy or symlink of it inside the build tree if it's expected."},"comment":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/comments/73221606","html_url":"https://github.com/urho3d/Urho3D/issues/653#issuecomment-73221606","issue_url":"https://api.github.com/repos/urho3d/Urho3D/issues/653","id":73221606,"user":{"login":"dervus","id":1039540,"avatar_url":"https://avatars.githubusercontent.com/u/1039540?v=3","gravatar_id":"","url":"https://api.github.com/users/dervus","html_url":"https://github.com/dervus","followers_url":"https://api.github.com/users/dervus/followers","following_url":"https://api.github.com/users/dervus/following{/other_user}","gists_url":"https://api.github.com/users/dervus/gists{/gist_id}","starred_url":"https://api.github.com/users/dervus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dervus/subscriptions","organizations_url":"https://api.github.com/users/dervus/orgs","repos_url":"https://api.github.com/users/dervus/repos","events_url":"https://api.github.com/users/dervus/events{/privacy}","received_events_url":"https://api.github.com/users/dervus/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T11:12:04Z","updated_at":"2015-02-06T11:12:04Z","body":"Thank you!"}}