From b5cd2d840cf430003a584f5550ef76d9b1191193 Mon Sep 17 00:00:00 2001 From: My Th Date: Tue, 23 Oct 2012 23:10:50 +1100 Subject: [eclass] Fix the 'only edit CMakeLists.txt' check, wrt bug #439268. --- eclass/cmake-utils.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/cmake-utils.eclass') diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 77653fff853..1adb29d56e2 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -266,7 +266,7 @@ _modify-cmakelists() { debug-print-function ${FUNCNAME} "$@" # Only edit the files once - grep -qs "<<< Gentoo configuration >>>" CMakeLists.txt && return 0 + grep -qs "<<< Gentoo configuration >>>" "${CMAKE_USE_DIR}"/CMakeLists.txt && return 0 # Comment out all set ( value) # TODO Add QA checker - inform when variable being checked for below is set in CMakeLists.txt -- cgit v1.2.3