vcpkg/ports/ogre/0002-ogre-cmake-dir-as-option.patch
2016-12-18 23:00:35 +01:00

20 lines
636 B
Diff

diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt
index 4c496b7..feb4017 100644
--- a/CMake/CMakeLists.txt
+++ b/CMake/CMakeLists.txt
@@ -14,10 +14,12 @@
#############################################################
if(WIN32 OR APPLE)
- set(OGRE_CMAKE_DIR "CMake")
+ set(OGRE_DEFAULT_CMAKE_DIR "CMake")
else()
- set(OGRE_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
+ set(OGRE_DEFAULT_CMAKE_DIR "${OGRE_LIB_DIRECTORY}/OGRE/cmake")
endif()
+set(OGRE_CMAKE_DIR ${OGRE_DEFAULT_CMAKE_DIR} CACHE STRING "Install directory for CMake files.")
+mark_as_advanced(OGRE_DEFAULT_CMAKE_DIR)
set(INST_FILES
Packages/FindOIS.cmake