[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [qyoto/KDE/4.9] cmake: Apply a patch from Fedora to fix the build with cmake 2.8.10
From:       Arno Rehn <arno () arnorehn ! de>
Date:       2012-11-15 17:14:16
Message-ID: 20121115171416.19187A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 5a99e4a5834456c1138af9b8da2fa0cab921327a by Arno Rehn.
Committed on 15/11/2012 at 18:12.
Pushed by arnorehn into branch 'KDE/4.9'.

Apply a patch from Fedora to fix the build with cmake 2.8.10

M  +5    -2    cmake/CMakeDetermineCSharpCompiler.cmake

http://commits.kde.org/qyoto/5a99e4a5834456c1138af9b8da2fa0cab921327a

diff --git a/cmake/CMakeDetermineCSharpCompiler.cmake b/cmake/CMakeDetermin=
eCSharpCompiler.cmake
index 29c0eb8..862d9b4 100644
--- a/cmake/CMakeDetermineCSharpCompiler.cmake
+++ b/cmake/CMakeDetermineCSharpCompiler.cmake
@@ -84,6 +84,9 @@ endif (CMAKE_CSharp_COMPILER)
 get_filename_component(script_dir ${CMAKE_CURRENT_LIST_FILE} PATH)
 =

 # configure variables set in this file for fast reload later on
-configure_file(${script_dir}/CMakeCSharpCompiler.cmake.in
-  ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeCSharpCompiler.cmake IM=
MEDIATE @ONLY)
+ if(NOT CMAKE_PLATFORM_INFO_DIR) # pre-2.8.10
+   set(CMAKE_PLATFORM_INFO_DIR ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY})
+ endif()
+ configure_file(${script_dir}/CMakeCSharpCompiler.cmake.in
+   ${CMAKE_PLATFORM_INFO_DIR}/CMakeCSharpCompiler.cmake IMMEDIATE @ONLY)
 set(CMAKE_CSharp_COMPILER_ENV_VAR "CSC")
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic