include(GNUInstallDirs)
set_property(CACHE CMAKE_INSTALL_PREFIX PREOPERTY VALUE "/usr/lib/x86_64-linux-gnu")
message(STATUS "-----------------${CMAKE_INSTALL_FULL_LIBDIR}")
the output is: -----------------/usr/local/lib
/usr/loca/lib is default CMAKE_INSTALL_PREFIX, now i want to use set_propery
modify it, it’s failed.
why?
I’ve changed the value of the CMAKE_INSTALL_PREFIX, why didn’t CMAKE_INSTALL_FULL_LIBDIR change to /usr/lib/x86_64-linux-gnu/lib