Fix the PolyVoxConifg[Version].cmake files.

Dave, try renaming Thermite's FindPolyVox.cmake file and see if cmake correctly finds PolyVox one it's been installed with these changes
This commit is contained in:
Matt Williams 2009-02-27 16:40:04 +00:00
parent 42f66378ea
commit 5b52f8c65f
2 changed files with 3 additions and 3 deletions

View File

@ -134,5 +134,5 @@ else(WIN32)
set(CONFIG_FILE_DIR "share/PolyVox/cmake")
endif(WIN32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/PolyVoxConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/PolyVoxConfig.cmake)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/PolyVoxConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/PolyVoxConfig.cmake @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PolyVoxConfig.cmake DESTINATION ${CONFIG_FILE_DIR})

View File

@ -6,7 +6,7 @@
# PolyVox_LIBRARY_DIRS, the location of the libraries
# PolyVox_FOUND, If false, do not try to use OGRE
#
# Copyright © 2008, Matt Williams
# Copyright © 2008, Matt Williams
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
@ -15,7 +15,7 @@ include(FindPackageMessage)
set(PREFIX "@CMAKE_INSTALL_PREFIX@")
set(PolyVox_LIBRARY_DIRS "${PREFIX}/lib")
set(PolyVox_INCLUDE_DIRS "${PREFIX}/include/PolyVoxCore" "${PREFIX}/include/PolyVoxUtil" "${PREFIX}/include)
set(PolyVox_INCLUDE_DIRS "${PREFIX}/include/PolyVoxCore" "${PREFIX}/include/PolyVoxUtil" "${PREFIX}/include")
set(PolyVox_LIBRARIES "PolyVoxUtil" "PolyVoxCore")
message(STATUS "Found PolyVox")