Skip to content

Unable to build Amber_Cmake Error_INTERFACE_INCLUDE_DIRECTORIES #856

@varnam379

Description

@varnam379

Trying to build Amber on Windows using:
cmake -GNinja -DVulkan_LIBRARY="C:\VulkanSDK\1.2.135.0" ../..

Getting error as follows:

CMake Error in samples/CMakeLists.txt:
  Target "Vulkan::Vulkan" contains relative path in its
  INTERFACE_INCLUDE_DIRECTORIES:

    "C:/VulkanSDK/1.2.135.0/include"

Here is the complete output after cmake:

cmake -GNinja -DVulkan_LIBRARY="C:\VulkanSDK\1.2.135.0" ../..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using python3
-- Found PythonInterp: /cygdrive/c/Python37/python.exe (found suitable version "3.7.6", minimum required is "3")
-- Amber enable SPIRV-Tools: TRUE
-- Amber enable Shaderc: TRUE
-- Amber enable tests: TRUE
-- Amber enable samples: TRUE
-- Amber enable lodepng: TRUE
-- Amber enable SwiftShader: OFF
-- Amber enable DXC: FALSE
-- Amber enable Clspv: FALSE
-- Could NOT find Dawn (missing: Dawn_INCLUDE_DIR Dawn_GEN_INCLUDE_DIR Dawn_LIBRARY Dawn_native_LIBRARY)
-- Amber: Did not find Dawn
-- Amber: Checking for CTS Vulkan header
-- Found Vulkan: C:/VulkanSDK/1.2.135.0
-- Amber: Using Vulkan from Vulkan SDK at C:\VulkanSDK\1.2.135.0
-- No build type selected, default to Debug
-- Found PythonInterp: /cygdrive/c/Python37/python.exe (found version "3.7.6")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found PythonInterp: /cygdrive/c/Python37/python.exe (found suitable version "3.7.6", minimum required is "3")
-- optimizer enabled
-- Shaderc: build type is "Debug".
-- Configuring Shaderc to avoid building tests.
-- asciidoctor was not found - no documentation will be generated
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING - Success
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING - Success
CMake Warning (dev) at third_party/spirv-headers/CMakeLists.txt:52 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'SPIRV_HEADERS_SKIP_EXAMPLES'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Installing SPIRV-Header
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
/cygdrive/c/amber
TRUE
-- Configuring done
CMake Error in samples/CMakeLists.txt:
  Target "Vulkan::Vulkan" contains relative path in its
  INTERFACE_INCLUDE_DIRECTORIES:

    "C:/VulkanSDK/1.2.135.0/include"


-- Generating done
-- Build files have been written to: /cygdrive/c/amber/out/Debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions