From d979e2e99c4a216a473e39078efc8709f8cabfee Mon Sep 17 00:00:00 2001 From: "dominique.leuenberger@gmail.com" Date: Mon, 12 Nov 2012 20:36:59 +0000 Subject: 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") -- cgit v1.2.1