From 71087d7335971f6a02af792a3bd9f3c2494b663c Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Fri, 28 May 2010 10:41:08 +0000 Subject: [PATCH] Fix for finding PolyVox on Linux --- library/PolyVoxConfig.cmake.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/PolyVoxConfig.cmake.in b/library/PolyVoxConfig.cmake.in index a41baf55..bef9927e 100644 --- a/library/PolyVoxConfig.cmake.in +++ b/library/PolyVoxConfig.cmake.in @@ -14,7 +14,11 @@ include(FindPackageMessage) get_filename_component(THIS_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) -set(PREFIX ${THIS_DIR}/..) +if(WIN32) + set(PREFIX ${THIS_DIR}/..) +else() + set(PREFIX ${THIS_DIR}/../../..) +endif() set(PolyVoxCore_LIBRARY_DIRS "${PREFIX}/@PolyVoxCore_LIBRARY_INSTALL_DIRS@")