Skip to content

Commit

Permalink
cmake: support gnu installation directory convention
Browse files Browse the repository at this point in the history
Support the handling of the `DESTDIR` environment variable for
environments (UNIX-based) opting for an GNU-style installation over
a CMake-style installation.

Cc: sl1pkn07 <sl1pkn07@gmail.com>
Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Jun 2, 2018
1 parent d6aeada commit 7de7b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ endforeach()
# legacy
add_custom_target(install-headers
COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/include/spirv
${CMAKE_INSTALL_PREFIX}/include/spirv)
$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/include/spirv)

add_subdirectory(example)

0 comments on commit 7de7b23

Please sign in to comment.