[CMake] Logarithms in MATH expressions

Martin Lütken mlu at danware.dk
Wed Dec 12 08:41:37 EST 2007


Anyone who knows wheter it's possible to calculate logarithms in MATH expressions in CMake?
Would like a log2 or alternatively "ln" (natural).

-Martin






-----Original Message-----
From: cmake-bounces+mlu=danware.dk at cmake.org on behalf of Fernando Cacciola
Sent: Wed 12/12/2007 2:29 PM
To: cmake at cmake.org
Subject: [CMake] Controling OutputDirectory in the vcprojs
 
Hi,

I'm porting (or trying to) a custom build system to CMake.
Following Boost we generate .libs whose names reflect configurarion 
properties. To keep it simple, say we generate "foo_release.lib" and 
"foo_debug-lib".
I was able to get those names right by setting the <CONFIG>-OUTPUT-NAME 
target properties, but I still have a problem: I don't want them in 
"Release" and "Debug" folders (there is no need for that since the 
configuration is in the name).

Looking at "cmLocalVisualStudio7Generator.cxx" it seems I'm plain out of 
luck since "OutputDirectory" is forcibly defined as the configuration name, 
so

1) Can the VisualStudio generator be fixed to define that as 
LIBRARY_OUTPUT_DIRECTORY if defined?

2) What can I do now? Can I plug in a post build event to copy the generated 
.lib to the right folder? Or do I need to handle it as an install rule? (and 
force my users to do "make install" in the end even for in-source builds)

TIA

-- 
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com 


_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071212/51353d50/attachment.html


More information about the CMake mailing list