So, now I upgraded the minimum requirement to 4.8.0 and I get this error<br><br>CMake Error at cmake/modules/MacroCalligraAddBenchmark.cmake:75 (add_custom_target):<br>  add_custom_target cannot create target "buildtests" because another target<br>
  with the same name already exists.  The existing target is a custom target<br>  created in source directory "/home/gk/kde/src/calligra/libs/pigment/tests".<br>  See documentation for policy CMP0002 for more details.<br>
Call Stack (most recent call first):<br>  libs/pigment/benchmarks/CMakeLists.txt:7 (calligra_add_benchmark)<br><br>This is because of "buildtests" target not being unique. Setting cmake_policy(SET CMP0002 OLD) in the CMakeLists.txt solves the problem temporaily. <br>
<br>The problems is in cmake/modules/MacroCalligraAddBenchmark.cmake where <br><br>    if (NOT MSVC_IDE)   #not needed for the ide<br>        # if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests<br>
        if (NOT KDE4_BUILD_TESTS)<br>           get_directory_property(_buildtestsAdded BUILDTESTS_ADDED)<br>           if(NOT _buildtestsAdded)<br>              add_custom_target(buildtests)<br>              set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE)<br>
           endif(NOT _buildtestsAdded)<br>           add_dependencies(buildtests ${_test_NAME})<br>        endif (NOT KDE4_BUILD_TESTS)<br>    endif (NOT MSVC_IDE)<br><br>code exists. On seeing the git history I see that this was added to enable "make benchmark". Any idea what is the purpose of the above code snippet? and is this option still being used by anyone? <br>
<br><br>CyrilleB any idea about this?<br><br>With regards,<br>Gopalakrishna<br><br clear="all"><br>-- <br>My blog <a href="http://gkbhat.blogspot.com" target="_blank">http://gkbhat.blogspot.com</a><br>