File cmake-2.6.patch of Package zeek
--- CMakeLists.txt 2015-02-13 19:35:23.000000000 +0000
+++ CMakeLists.txt 2015-02-21 06:52:53.494337656 +0000
@@ -2,7 +2,7 @@
# When changing the minimum version here, also adapt
# aux/zeek-aux/plugin-support/skeleton/CMakeLists.txt
-cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.6.3 FATAL_ERROR)
include(cmake/CommonCMakeConfig.cmake)
--- aux/zeek-aux/CMakeLists.txt 2015-02-13 19:35:25.000000000 +0000
+++ aux/zeek-aux/CMakeLists.txt 2015-02-21 06:54:24.762338349 +0000
@@ -1,5 +1,5 @@
project(BroAux C CXX)
-cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.6.3 FATAL_ERROR)
include(cmake/CommonCMakeConfig.cmake)
########################################################################
@@ -49,10 +49,11 @@
"${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
install(TARGETS ${_target} DESTINATION bin)
else ()
+ get_property(_target_loc TARGET ${_target} PROPERTY LOCATION)
add_custom_target(install-${_target}
COMMAND ${CMAKE_COMMAND} -E make_directory
${CMAKE_INSTALL_PREFIX}/bin
- COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${_target}>
+ COMMAND ${CMAKE_COMMAND} -E copy ${_target_loc}
${CMAKE_INSTALL_PREFIX}/bin)
add_dependencies(install-${_target} ${_target})
set(AUX_TARGETS install-${_target};${AUX_TARGETS})