From d012fcafd8c48c533c4ef14c2ad2f220daa641ae Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Fri, 5 Mar 2010 16:02:00 +0000 Subject: [PATCH] Allow relocatable installation with PolyVoxConfig.cmake --- library/PolyVoxConfig.cmake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/PolyVoxConfig.cmake.in b/library/PolyVoxConfig.cmake.in index 239ad2dc..8aacd89f 100644 --- a/library/PolyVoxConfig.cmake.in +++ b/library/PolyVoxConfig.cmake.in @@ -13,7 +13,8 @@ include(FindPackageMessage) -set(PREFIX "@CMAKE_INSTALL_PREFIX@") +get_filename_component(THIS_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +set(PREFIX ${THIS_DIR}/../../..) set(PolyVoxCore_LIBRARY_DIRS "${PREFIX}/@PolyVoxCore_LIBRARY_INSTALL_DIRS@")