Fix recipe for CMake

Hugo Barrocas <[email protected]>
Newsgroups gmane.linux.distributions.gobo.general
Message-ID <CAMZ98SFHM02atUOesXh_uYiZ+x+R7_NbR+nwF_AX7xQ3hOiRfA@mail.gmail.com>
Hi all,

I made a NewVersion CMake 3.5.1 , but since it's based on the previous
outdated version, the recipe still has reference to:

pre_install() {
    if [ -d "/System/Index" ]
    then
        GrepReplace "$goboIndex" "$target" cmake_install.cmake
    fi
}

It still Compiled ok, but as a result, the new version RecipeLint
complaints about this:
ERROR: Recipe references /System tree explicitly. Use $<gobo
environment variable>.

I have limited knowledge on programming :P
What is the best way to fix this recipe code?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.