Skip to content

CMake FetchContent Difficulties #523

Open
@TheFloatingBrain

Description

@TheFloatingBrain

Im trying to use Ogre-Next with CMake Fetch Content, I have attached my CMakeLists.txt.
I am using windows with msbuild generator (one of my dependencies tried to pass $(TargetConfiguration) or something like that to ninja).

Presently I am noticing some issues, the first one is that it seems to be pulling an extremely out of date LibRaw Datastream which still contained the infamous deprecated std::auto_ptr which because it detracted is causing compiler errors.

The second, which may be caused by the first is I am getting something wrong when following the shaderc.rule, first it tells me Error D8040 error creating or communicating with child process
Which is followed by

Error MSB8066 Custom build for 'REDACT\out\build\x64-debug\CMakeFiles\REDACT\shaderc-build.rule;
.. REDACT\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets	254

Followed by two

Error C1083 Cannot open compiler generated file: '': Invalid argument REDACT\out\build\x64-debug\_deps\ogre-next-deps-src\src\vulkan\shaderc\src\third_party\spirv-tools\source\reduce\conditional_branch_to_simple_conditional_branch_reduction_opportunity.cpp

shaderc appears to be a dpendancy in ogre-next-deps that something fails in which may or may not be related to the error in LibRaw Datastream which appears to need a 1 in front of its version number instead of a 0.

I'd like to avoid the .bat scripts (because I just want to keep everything working with FetchContent) but I did reference them when composing this CMakeLists.txt file

Anyone have any idea what is going on or how I can fix it? I have a feeling something is getting misinterpreted like a version number or something unusual is happening causing a bug with the version number of LibRaw Datastream or something. Not sure.

Thanks!

  • TFB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions