From 05f687df23fbd534fe06fe3d55eb73bddd2cc3b1 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Tue, 4 Apr 2017 14:50:10 +0200 Subject: [PATCH] Fix API docs for headers more than one folder level from the top --- cmake/GammaRayMacrosInternal.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GammaRayMacrosInternal.cmake b/cmake/GammaRayMacrosInternal.cmake index 35a4808e05..4277df72df 100644 --- a/cmake/GammaRayMacrosInternal.cmake +++ b/cmake/GammaRayMacrosInternal.cmake @@ -55,7 +55,7 @@ macro(gammaray_target_relocatable_interfaces _paths) endmacro() function(gammaray_install_headers) - get_filename_component(_dir ${CMAKE_CURRENT_SOURCE_DIR} NAME) + file(RELATIVE_PATH _dir ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) cmake_parse_arguments(HEADER_INSTALL "" "DESTINATION" "" ${ARGN}) if(NOT HEADER_INSTALL_DESTINATION) set(HEADER_INSTALL_DESTINATION ${_dir})