Skip to content

CMake build fails to find SPIRV-Tools on Windows using Ninja build tools #1

@joshohagan17

Description

@joshohagan17

Error output:

CMake Error at libs/shaderc/third_party/CMakeLists.txt:62 (message):
  SPIRV-Tools was not found - required for compilation

Full output:

C:\Users\josh.ohagan\AppData\Local\Programs\CLion\bin\cmake\win\x64\bin\cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:/Users/josh.ohagan/AppData/Local/Programs/CLion/bin/ninja/win/x64/ninja.exe -G Ninja -S C:\Projects\WaterSurfaceRendering -B C:\Projects\WaterSurfaceRendering\build\debug
-- Build spdlog: 1.10.0
-- Build type: Debug
-- Using Win32 for window creation
-- Missing spriv-tools. Synchronizing dependencies.
CMake Deprecation Warning at libs/shaderc/CMakeLists.txt:15 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Warning (dev) at libs/shaderc/CMakeLists.txt:22 (project):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
    PROJECT_VERSION_MAJOR
    PROJECT_VERSION_MINOR
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Shaderc: build type is "Debug".
-- Configuring Shaderc to avoid building tests.
-- Configuring Shaderc to avoid building examples.
-- Configuring Shaderc to avoid checking copyrights.
-- asciidoctor was not found - no documentation will be generated
CMake Warning (dev) at libs/shaderc/cmake/setup_build.cmake:52 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  libs/shaderc/CMakeLists.txt:74 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at libs/shaderc/cmake/setup_build.cmake:17 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  libs/shaderc/CMakeLists.txt:99 (find_host_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at libs/shaderc/third_party/CMakeLists.txt:62 (message):
  SPIRV-Tools was not found - required for compilation


-- Configuring incomplete, errors occurred!

[Failed to reload]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions