[Kde-bindings] [Bug 309652] Qyoto: Could not find CMakeCSharpCompiler.cmake with cmake 2.8.10

Rex Dieter rdieter at math.unl.edu
Tue Nov 6 14:36:26 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=309652

Rex Dieter <rdieter at math.unl.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |rdieter at math.unl.edu
     Ever confirmed|0                           |1

--- Comment #1 from Rex Dieter <rdieter at math.unl.edu> ---
This seems to be some regression or behavior change in cmake.

Per our downstream report,
https://bugzilla.redhat.com/show_bug.cgi?id=872829

Kevin suggests... (yet untested):

CMakeCSharpCompiler.cmake is configured from CMakeCSharpCompiler.cmake.in by
this command:
configure_file(${script_dir}/CMakeCSharpCompiler.cmake.in
  ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeCSharpCompiler.cmake
IMMEDIATE @ONLY)
in cmake/CMakeDetermineCSharpCompiler.cmake.

It looks like the hardcoded destination path there needs to be adjusted for
CMake 2.8.10, e.g.:
if (${CMAKE_VERSION} VERSION_LESS "2.8.10")
  set (COMPILER_SUPPORT_SUBDIRECTORY "")
else (${CMAKE_VERSION} VERSION_LESS "2.8.10")
  set (COMPILER_SUPPORT_SUBDIRECTORY "/${CMAKE_VERSION}")
endif (${CMAKE_VERSION} VERSION_LESS "2.8.10")
configure_file(${script_dir}/CMakeCSharpCompiler.cmake.in
 
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}${COMPILER_SUPPORT_SUBDIRECTORY}/CMakeCSharpCompiler.cmake
IMMEDIATE @ONLY)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-bindings mailing list