build: Fix install target path

Use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR when defining
the path for the source files to be installed.

CMAKE_SOURCE_DIR always points at the directory containing the root
CMakeLists.txt, while CMAKE_CURRENT_SOURCE_DIR points at the directory
containing the current project's CMakeLists.txt. These are normally
identical, except when another CMake project includes this project via
add_subdirectory() --- in that case, CMAKE_CURRENT_SOURCE_DIR is the
right variable to use when composing paths to files within the current
project tree.

Change-Id: I4bdcc3bf538e96c43ae5f4ff6758cf45992442e0
1 file changed
tree: 879c75d02b81fe5467aef44ad6788374f12402e2
  1. cmake/
  2. include/
  3. registry/
  4. .cmake-format.py
  5. .gitattributes
  6. .gitignore
  7. BUILD.md
  8. CMakeLists.txt
  9. CODE_OF_CONDUCT.md
  10. LICENSE.txt
  11. README.md
README.md

Vulkan-Headers

Vulkan Header files and API registry

Repository Content

The contents of this repository are largely obtained from other repositories and are collected, coordinated, and curated here.

The projects for these repositories are:

Please visit the appropriate project in the above list for obtaining additional information, asking questions, or opening issues.