Fix for finding PolyVox on Linux

This commit is contained in:
Matt Williams 2010-05-28 10:41:08 +00:00
parent 948508982c
commit 71087d7335

View File

@ -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@")