From 5afbf7e0e5c8116002cbd06abce48b410855d5e1 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 21 Nov 2015 13:37:54 +0100 Subject: [PATCH] cmake: fix "multiple rules generate abi-descriptor.template" warning Fixes warning with "cmake -GNinja && ninja": ninja: warning: multiple rules generate /tmp/wireshark/abi-descriptor.template. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] Change-Id: I82ed3aefd32852e6a98060c1a175df855062531d Reviewed-on: https://code.wireshark.org/review/12009 Reviewed-by: Anders Broman Petri-Dish: Anders Broman Reviewed-by: Peter Wu --- cmake/modules/UseABICheck.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/UseABICheck.cmake b/cmake/modules/UseABICheck.cmake index b5841e75d1..cd08c6a3e6 100644 --- a/cmake/modules/UseABICheck.cmake +++ b/cmake/modules/UseABICheck.cmake @@ -13,7 +13,7 @@ MACRO(ABICHECK _libname) get_directory_property(INCLUDE_DIRS INCLUDE_DIRECTORIES) list(REMOVE_DUPLICATES INCLUDE_DIRS) string(REGEX REPLACE ";" "\n" INCLUDE_DIRS "${INCLUDE_DIRS}") - configure_file(../abi-descriptor.template abi-descriptor.xml) + configure_file("${CMAKE_SOURCE_DIR}/abi-descriptor.template" abi-descriptor.xml) # discover and substitute list of include directories for ABI compatibility # checks file(GLOB ABICHECK_HEADERS RELATIVE ${CMAKE_CURRENT_BINARY_DIR} *.h) -- 2.34.1