cmake inserts compiled code into trunk folder when using relative path

Bug #1131145 reported by Christian Jakob
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Won't Fix
Medium
Unassigned

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

...

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 1131145] [NEW] cmake inserts compiled code into trunk folder when using relative path
Download full text (5.5 KiB)

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 <email address hidden>:
> 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 Eng...

Read more...

Revision history for this message
Anton Gladky (gladky-anton) wrote :

I think, we can nothing to do with this bug.
If not agree, please, reopen.

Anton

Changed in yade:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.