eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.08k stars 444 forks source link

[Bug]: CMAKE_INSTALL_LIBDIR is ignored by CMakeLists.txt #3409

Open wahnfred opened 2 weeks ago

wahnfred commented 2 weeks ago

What happened?

-DCMAKE_INSTALL_LIBDIR=lib64 is ignored and mishandled in CMakeLists.txt.

87: set(CL_PREFIX "${CMAKE_INSTALL_PREFIX}")

and then in

284: if(NOT CL_PREFIX)

When cmake is called with CMAKE_INSTALL_LIBDIR set, it should also be preferred over

294: include(GNUInstallDirs) # defines CMAKE_INSTALL_LIBDIR to lib or lib64 or whatever. Available since cmake.

Version

Self compiled: 17.10.0-15-g0ef94810a

Operating system

Linux