cmake: Fix lib detection for cmake compilation itself
cmake: Fix lib detection for cmake compilation itself

gnubila-france/linuxbrew,gnubila-france/linuxbrew,gnubila-france/linuxbrew,gnubila-france/linuxbrew