cmake inserts compiled code into trunk folder when using relative path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
- this works well:
cmake -DINSTALL_
make
make install
- this not:
cd /home/me/
cmake -DINSTALL_PREFIX=. /home/me/
make
make install
-> it includes bin, share and lib/yade-
me@debian ~/YADE/
[ 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/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
-- Installing: /home/me/
...
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>: PREFIX= /home/me/ YADE/YADEinstal led/ /home/me/ YADE/trunk/ YADE/YADEinstal led/ YADE/trunk/ 2013-02- 20.git- 6bf84aa/ into YADEinstalled >make install YADE/trunk/ bin/yade- 2013-02- 20.git- 6bf84aa- batch YADE/trunk/ bin/yade- 2013-02- 20.git- 6bf84aa YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ config. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ __init_ _.py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ checkGravity. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ checkTestDummy. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ checkList. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ checkTestTriax. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ checkWeight. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ checkTestNormal Inelasticity. py YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ data/WallStress esCheckTest YADE/trunk/ lib/yade- 2013-02- 20.git- 6bf84aa/ py/yade/ tests/checks/ data/checkTestT riax.spheres YADE/trunk/ share/doc/ yade-2013- 02-20.git- 6bf84aa/ img/yade- logo-note. png /bugs.launchpad .net/bugs/ 1131145
> Public bug reported:
>
> - this works well:
>
> cmake -DINSTALL_
> make
> make install
>
> - this not:
>
> cd /home/me/
> cmake -DINSTALL_PREFIX=. /home/me/
> make
> make install
>
> -> it includes bin, share and lib/yade-
> trunk folder:
>
> me@debian ~/YADE/
> [ 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/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
> -- Installing: /home/me/
>
> ...
>
> ** Affects: yade
> Importance: Medium
> Status: New
>
> --
> You received this bug notification because you are subscribed to Yade.
> https:/
>
> Title:
> cmake inserts compiled code into trunk folder when using relative path
>
> Status in Yet Another Dynamic Eng...