# CMAKE\_INSTALL\_FULL\_LIBDIR can't change the absolute path by CMAKE\_INSTALL\_PREFIX

**URL:** <https://discourse.cmake.org/t/cmake-install-full-libdir-cant-change-the-absolute-path-by-cmake-install-prefix/11650>\
**Category:** Code\
**Tags:** os:linux\
**Created:** [September 12, 2024, 3:19am UTC](https://discourse.cmake.org/t/cmake-install-full-libdir-cant-change-the-absolute-path-by-cmake-install-prefix/11650 "2024-09-12T03:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xwj1998](https://discourse.cmake.org/user_avatar/discourse.cmake.org/xwj1998/32/4926_2.png) [@xwj1998](https://discourse.cmake.org/u/xwj1998)\
**Post date:** [September 12, 2024, 3:19am UTC](https://discourse.cmake.org/t/cmake-install-full-libdir-cant-change-the-absolute-path-by-cmake-install-prefix/11650/1 "2024-09-12T03:19:20Z")

</div>

```auto
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

---

<div class="post-metadata">

**Author:** ![retif](https://discourse.cmake.org/user_avatar/discourse.cmake.org/retif/32/1776_2.png) [@retif](https://discourse.cmake.org/u/retif)\
**Post date:** [September 12, 2024, 7:45am UTC](https://discourse.cmake.org/t/cmake-install-full-libdir-cant-change-the-absolute-path-by-cmake-install-prefix/11650/2 "2024-09-12T07:45:38Z")

</div>

> PREOPERTY

That looks like a typo.

Also, I would probably recommend setting `CMAKE_INSTALL_PREFIX` from CLI (_via `-D`_).
