# cmake-DCMAKE\_INSTALL\_PREFIX is not working fine

**URL:** https://discourse.cmake.org/t/cmake-dcmake-install-prefix-is-not-working-fine/3435
**Category:** Usage
**Tags:** os:linux
**Created:** [May 29, 2021, 3:19am UTC](https://discourse.cmake.org/t/cmake-dcmake-install-prefix-is-not-working-fine/3435 "2021-05-29T03:19:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Shardul](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@Shardul](https://discourse.cmake.org/u/Shardul)
#### Post date: [May 29, 2021, 3:19am UTC](https://discourse.cmake.org/t/cmake-dcmake-install-prefix-is-not-working-fine/3435/1 "2021-05-29T03:19:02Z")

</div>

I was using cmake commands to build a dependency for my project and the code goes like:

```auto
~/game.libretro/build$ cmake -DCMAKE_BUILD_TYPE=Debug \
> -DCMAKE_PREFIX_PATH=$HOME/xbmc \
> -DCMAKE_INSTALL_PREFIX=$HOME/workspae/kodi/addons \
> -DPACKAGE_ZIP=1 \
> ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking to see if CXX compiler accepts flag -flto
-- Checking to see if CXX compiler accepts flag -flto - yes
-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so  
-- Found Rcheevos: /home/shardul/xbmc/lib/librcheevoslib.a  
-- LIBRETRO_VERSION=2.2.0
-- Addon dependency check ...
-- - Added API usage definition: ADDON_GLOBAL_VERSION_MAIN_USED (Version: "1.3.0", Min. Version: "1.2.0")
-- - Added API usage definition: ADDON_GLOBAL_VERSION_GENERAL_USED (Version: "1.0.5", Min. Version: "1.0.4")
-- - Added API usage definition: ADDON_GLOBAL_VERSION_FILESYSTEM_USED (Version: "1.1.6", Min. Version: "1.1.0")
-- - Added API usage definition: ADDON_INSTANCE_VERSION_GAME_USED (Version: "2.1.0", Min. Version: "2.1.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shardul/game.libretro/build

```

Overall the process completed without any error, but I was unable to locate workspace folder in my home directory. Can someone guide why it happens. Ihave build it once previously that time it was fine, but I had to delete it then due to some reasons but now it showing this wierd behaviour.

---

<div class="post-metadata">

### Author: ![Dakon](https://discourse.cmake.org/user_avatar/discourse.cmake.org/dakon/32/854_2.png) [@Dakon](https://discourse.cmake.org/u/Dakon)
#### Post date: [May 29, 2021, 9:53am UTC](https://discourse.cmake.org/t/cmake-dcmake-install-prefix-is-not-working-fine/3435/2 "2021-05-29T09:53:58Z")

</div>

First you set the install prefix to _workspae_ instead of _workspace_, and then nothing is installed until you explicitely call “ **make install** ” or “ **ninja install** ”.
