← Back to team overview

yade-dev team mailing list archive

Re: [Bug 1131145] [NEW] cmake inserts compiled code into trunk folder when using relative path

 

Cmake accepts usually only absolute paths. INSTALL_PREFIX variable due
to some tricks accepts relative paths for Yade, but they are (as you
found out) relative to the source-code path (trunk in your case).
Please, use absolute paths, if relative one brings difficulties.

It is better to split the installation into three paths: source-code,
build-folder, install-folder. In this case files will not be mixed and
the source code will always be clean. You can even build the project
with different parameters, but from the same source-code-folder.

Best regards,

Anton


2013/2/21 Christian Jakob <1131145@xxxxxxxxxxxxxxxxxx>:
> Public bug reported:
>
> - this works well:
>
> cmake -DINSTALL_PREFIX=/home/me/YADE/YADEinstalled/ /home/me/YADE/trunk/
> make
> make install
>
> - this not:
>
> cd /home/me/YADE/YADEinstalled/
> cmake -DINSTALL_PREFIX=. /home/me/YADE/trunk/
> make
> make install
>
> -> it includes bin, share and lib/yade-2013-02-20.git-6bf84aa/ into
> trunk folder:
>
> me@debian ~/YADE/YADEinstalled >make install
> [  1%] Built target miniEigen
> [  9%] Built target support
> [ 21%] Built target core
> [ 25%] Built target _GLViewer
> [ 89%] Built target plugins
> [ 90%] Built target boot
> [ 90%] Built target WeightedAverage2d
> [ 91%] Built target _customConverters
> [ 91%] Built target _eudoxos
> [ 97%] Built target _gts
> [ 97%] Built target _packObb
> [ 98%] Built target _packPredicates
> [ 98%] Built target _packSpheres
> [ 99%] Built target _utils
> [100%] Built target wrapper
> Install the project...
> -- Install configuration: "Release"
> -- Installing: /home/me/YADE/trunk/bin/yade-2013-02-20.git-6bf84aa-batch
> -- Installing: /home/me/YADE/trunk/bin/yade-2013-02-20.git-6bf84aa
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/config.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/__init__.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkGravity.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestDummy.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkList.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestTriax.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkWeight.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestNormalInelasticity.py
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/data/WallStressesCheckTest
> -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/data/checkTestTriax.spheres
> -- Installing: /home/me/YADE/trunk/share/doc/yade-2013-02-20.git-6bf84aa/img/yade-logo-note.png
>
> ...
>
> ** Affects: yade
>      Importance: Medium
>          Status: New
>
> --
> You received this bug notification because you are subscribed to Yade.
> https://bugs.launchpad.net/bugs/1131145
>
> Title:
>   cmake inserts compiled code into trunk folder when using relative path
>
> Status in Yet Another Dynamic Engine:
>   New
>
> Bug description:
>   - this works well:
>
>   cmake -DINSTALL_PREFIX=/home/me/YADE/YADEinstalled/ /home/me/YADE/trunk/
>   make
>   make install
>
>   - this not:
>
>   cd /home/me/YADE/YADEinstalled/
>   cmake -DINSTALL_PREFIX=. /home/me/YADE/trunk/
>   make
>   make install
>
>   -> it includes bin, share and lib/yade-2013-02-20.git-6bf84aa/ into
>   trunk folder:
>
>   me@debian ~/YADE/YADEinstalled >make install
>   [  1%] Built target miniEigen
>   [  9%] Built target support
>   [ 21%] Built target core
>   [ 25%] Built target _GLViewer
>   [ 89%] Built target plugins
>   [ 90%] Built target boot
>   [ 90%] Built target WeightedAverage2d
>   [ 91%] Built target _customConverters
>   [ 91%] Built target _eudoxos
>   [ 97%] Built target _gts
>   [ 97%] Built target _packObb
>   [ 98%] Built target _packPredicates
>   [ 98%] Built target _packSpheres
>   [ 99%] Built target _utils
>   [100%] Built target wrapper
>   Install the project...
>   -- Install configuration: "Release"
>   -- Installing: /home/me/YADE/trunk/bin/yade-2013-02-20.git-6bf84aa-batch
>   -- Installing: /home/me/YADE/trunk/bin/yade-2013-02-20.git-6bf84aa
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/config.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/__init__.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkGravity.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestDummy.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkList.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestTriax.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkWeight.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestNormalInelasticity.py
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/data/WallStressesCheckTest
>   -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/data/checkTestTriax.spheres
>   -- Installing: /home/me/YADE/trunk/share/doc/yade-2013-02-20.git-6bf84aa/img/yade-logo-note.png
>
>   ...
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/yade/+bug/1131145/+subscriptions

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1131145

Title:
  cmake inserts compiled code into trunk folder when using relative path

Status in Yet Another Dynamic Engine:
  New

Bug description:
  - this works well:

  cmake -DINSTALL_PREFIX=/home/me/YADE/YADEinstalled/ /home/me/YADE/trunk/
  make 
  make install

  - this not:

  cd /home/me/YADE/YADEinstalled/
  cmake -DINSTALL_PREFIX=. /home/me/YADE/trunk/
  make 
  make install

  -> it includes bin, share and lib/yade-2013-02-20.git-6bf84aa/ into
  trunk folder:

  me@debian ~/YADE/YADEinstalled >make install
  [  1%] Built target miniEigen
  [  9%] Built target support
  [ 21%] Built target core
  [ 25%] Built target _GLViewer
  [ 89%] Built target plugins
  [ 90%] Built target boot
  [ 90%] Built target WeightedAverage2d
  [ 91%] Built target _customConverters
  [ 91%] Built target _eudoxos
  [ 97%] Built target _gts
  [ 97%] Built target _packObb
  [ 98%] Built target _packPredicates
  [ 98%] Built target _packSpheres
  [ 99%] Built target _utils
  [100%] Built target wrapper
  Install the project...
  -- Install configuration: "Release"                                                                                                                                                              
  -- Installing: /home/me/YADE/trunk/bin/yade-2013-02-20.git-6bf84aa-batch
  -- Installing: /home/me/YADE/trunk/bin/yade-2013-02-20.git-6bf84aa
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/config.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/__init__.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkGravity.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestDummy.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkList.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestTriax.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkWeight.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/checkTestNormalInelasticity.py
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/data/WallStressesCheckTest
  -- Installing: /home/me/YADE/trunk/lib/yade-2013-02-20.git-6bf84aa/py/yade/tests/checks/data/checkTestTriax.spheres
  -- Installing: /home/me/YADE/trunk/share/doc/yade-2013-02-20.git-6bf84aa/img/yade-logo-note.png

  ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1131145/+subscriptions


References