vcpkg/ports/ogre/0002-ogre-cmake-dir-as-option.patch

20 lines
636 B
Diff
Raw Normal View History

2016-12-19 06:00:35 +08:00
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