blob: 80c99ac5ae1b9e0bf570f958a02a3692190efa44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From d979e2e99c4a216a473e39078efc8709f8cabfee Mon Sep 17 00:00:00 2001
From: "dominique.leuenberger@gmail.com"
<dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56>
Date: Mon, 12 Nov 2012 20:36:59 +0000
Subject: [PATCH] cmake 2.8.10 has slight changes to the internal API
git-svn-id: http://libproxy.googlecode.com/svn/trunk@866 c587cffe-e639-0410-9787-d7902ae8ed56
---
cmake/CMakeDetermineCSharpCompiler.cmake | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmake/CMakeDetermineCSharpCompiler.cmake b/cmake/CMakeDetermineCSharpCompiler.cmake
index 91c1e9f..86532eb 100644
--- a/cmake/CMakeDetermineCSharpCompiler.cmake
+++ b/cmake/CMakeDetermineCSharpCompiler.cmake
@@ -92,7 +92,11 @@ if (CMAKE_CSharp_COMPILER)
endif (CMAKE_CSharp_COMPILER)
# configure variables set in this file for fast reload later on
+if(NOT CMAKE_PLATFORM_INFO_DIR) # pre-2.8.10
+ set(CMAKE_PLATFORM_INFO_DIR ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY})
+endif()
+
configure_file(${CMAKE_SOURCE_DIR}/cmake/CMakeCSharpCompiler.cmake.in
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeCSharpCompiler.cmake IMMEDIATE @ONLY)
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeCSharpCompiler.cmake IMMEDIATE @ONLY)
set(CMAKE_CSharp_COMPILER_ENV_VAR "CSC")
--
1.8.0
|