List Info

Thread: CMake resetting prefix to prefix/bin




CMake resetting prefix to prefix/bin
country flaguser name
United States
2007-02-28 12:49:43
scripts/CMakeLists.txt in libpng-1.2.16 contains this:

# we use the same files like ./configure, so we have to set
its vars
set(prefix      $/bin)
set(exec_prefix $/bin)

This results in "/bin" being appended to whatever
the user supplies for PREFIX,
in libpng-config and pkgconfig/libpng.pc

Why?  Shouldn't prefix and exec_prefix be left as is?

Configure seems to be passing prefix and exec_prefix as is
into libpng-config and
pkgconfig/libpng.pc as I would expect.

Glenn

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

Re: CMake resetting prefix to prefix/bin
user name
2007-02-28 13:09:57
glennrpcomcast.net schrieb:
> scripts/CMakeLists.txt in libpng-1.2.16 contains this:
> 
> # we use the same files like ./configure, so we have to
set its vars
> set(prefix      $/bin)
> set(exec_prefix $/bin)
> 
> This results in "/bin" being appended to
whatever the user supplies for PREFIX,
> in libpng-config and pkgconfig/libpng.pc
> 
> Why?  Shouldn't prefix and exec_prefix be left as is?
> 
> Configure seems to be passing prefix and exec_prefix as
is into libpng-config and
> pkgconfig/libpng.pc as I would expect.
> 
Looks like I read ./configure script wrong here. I wanted to
emulate 
it's behaviour but it looks like this is wrong 
Feel free to change it the way it should be

Christian

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )