From c8f94f97da9ff5d2ad8887cc104fb94883975559 Mon Sep 17 00:00:00 2001 From: Benedikt Volkel Date: Mon, 20 Jan 2020 11:25:24 +0100 Subject: [PATCH] Fix path to pick up targets in CMake config --- cmake/MCStepLoggerConfig.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/MCStepLoggerConfig.cmake.in b/cmake/MCStepLoggerConfig.cmake.in index e6b212f..e8b6918 100644 --- a/cmake/MCStepLoggerConfig.cmake.in +++ b/cmake/MCStepLoggerConfig.cmake.in @@ -1,5 +1,6 @@ # Compute installation prefix relative to this file -get_filename_component(_prefix "${_dir}/../.." ABSOLUTE) + +get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH) # Import targets include("${_dir}/MCStepLoggerTargets.cmake")