[CMake] building 64bit and 32bit libraries from same source

2013-12-11 Thread Jacob Avraham
Hi,
I'm running on a 32bit Linux and I'd like to build from the same source, 
libraries complied and linked as 32bit and 64bit.
They should be installed in /usr/lib and /usr/lib64.
How do I go about and do that?
Thanks,
Jacob
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] RESULT_VARIABLE of excecute_process inside install() not getting value

2010-09-06 Thread Jacob Avraham
Hi,
I'm trying to get a return value of a script that I runs from execute_process() 
command, 
as part of an install() command, and I don't see that the return variable is 
getting any value.
I'm doing something like:
install(CODE 
execute_process(COMMAND my_script
RESULT_VARIABLE ret_val)
MESSAGE(\install return value is ${ret_val}\)
)

It does work when not included in an install CODE segment.

Any idea how to get the make to abort when my_script fails?

Thanks,

Jacob
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake