Am Samstag, 7. Mai 2011 schrieb Peter Kümmel: > On 07.05.2011 12:25, Kornel wrote: > > Ok, we can ask if ${CMAKE_BINARY_DIR} equals ${CMAKE_SRC_DIR} > > Seems we've worked in parallel. But not a problem, mainly I > needed a test case for the "one-feature-in-a-branch" workflow. > ... I have found 1 problem with our solution. On OpenSuSE 11.2, the available cmake version is 2.6.??. We allow cmake_minimum_required(VERSION 2.6.4) that's OK so far. But later on, if building in a separate build-directory we use a construct cmake_policy(SET CMP0013 OLD) This fails there. What's more annoying, the whole configuration failes too, because cmake 2.6 does not allow thes same build directory twice.
I searched for cmake packages and found version 2.8.3 on OpenSuSE 11.4, but it depends on other packages, whose versions are not available on 11.2. Therefore the out-of-source build on OpenSuSE is not possible ATM. What we could do, is convert development/cmake/CMakeLists.txt to a something like TopLyx.cmake and include directly in the top-level CMakeLists.txt. Also the add_subdirectory() calls in this TopLyx.cmake has to be expanded with a second parameter, e.g. add_subdirectory(src) will be changed to add_subdirectory(src "$TOP_BINARY_DIR/src") Kornel
signature.asc
Description: This is a digitally signed message part.