[CMake] CMAKE_OSX_SYSROOT being ignored?

2009-07-09 Thread Kenneth Riddile
Hi, I'm using CMake 2.6.4 to generate xcode projects for iphone apps.  I have nearly everything working, except that my specified setting for CMAKE_OSX_SYSROOT is being ignored in favor of the "Current OS" setting.  I am specifying it like this: set(CMAKE_OSX_ROOT iphoneos2.1) from looking at th

[CMake] "Toolchain" for native builds

2009-07-09 Thread S. Levent Yilmaz
This question was asked a while ago: http://www.cmake.org/pipermail/cmake/2009-June/030404.html with no definitive answer.. So, I'll try to raise this issue from a different angle, perhaps this will make more sense to the developers. Take a look at this line: cmake \ -DCMAKE_CXX_COMPILER=icpc

[CMake] Detect 64 bit library when doing find_library?

2009-07-09 Thread James Bigler
Is it possible to detect if find_library has found a 32 or 64 bit library on windows? Thanks, James ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-to

Re: [CMake] help using try_run with custom build type

2009-07-09 Thread George Neill
Hi All, On Wed, Jul 8, 2009 at 2:29 AM, Denis Scherbakov wrote: > >> > It appears to fail because the compiler options do not >> make it in when >> > creating the executable ... is there something silly I >> have missed? >> > Also, I was wondering why TRY_RUN doesn't use the >> default flags >> >

Re: [CMake] post and pre processing for the Cpack target (package/package_source)

2009-07-09 Thread Eric Noulard
2009/7/9 t m : > Hello CMake Experts, > > Is there any way to define post or pre-processing actions for built-in > targets like package/package_source. > > Those two are not visible in "CMakeLists.txt scope", so the > add_dependencies(package_source pre_package_source) > can not be used. What I fou

[CMake] post and pre processing for the Cpack target (package/package_source)

2009-07-09 Thread t m
Hello CMake Experts, Is there any way to define post or pre-processing actions for built-in targets like package/package_source. Those two are not visible in "CMakeLists.txt scope", so the add_dependencies(package_source pre_package_source) can not be used. What I found is the solution described

Re: [CMake] Cmake + Matlab mex

2009-07-09 Thread Matt McCormick
> ..., but what I want to do is compile a file > for use in Matlab using the mex compiler. I can do this by hand by > executing the following in a shell: > > $ mex foo.cpp > > This would produce a foo.mexglx binary which matlab would be able to use. > > This is great if your foo.cpp is self-co

[CMake] Valgrind and CTest on OS X -- num-callers default failure

2009-07-09 Thread kent williams
Maybe I'm out on the bleeding edge, but... I built the current .svn for valgrind on OS X 10.5.7. Then I tried to do a memory check with CTest for Insight. Every test failed with this error message: ./Testing/20090708-0100/DynamicAnalysis.xml:==81796== '--num-callers' argument must be between 1

[CMake] Install command using Optional for Visual Studio 9 2008

2009-07-09 Thread Anders Eriksson
Hi, I am using CMake 2.6-patch 0 on Windows XP and I am generating build files for "Visual Stuiod 9 2008". I have quertions regaring the Install command: 1) Is there a way to create a build target euqal to the install/fast target that is available for the "Unix Makefiles" generator

Re: [CMake] conflicting types for built-in function 'snprintf'

2009-07-09 Thread Eric Noulard
2009/7/9 Mathieu Malaterre : > On Wed, Jul 8, 2009 at 11:22 PM, Alexander > Neundorf wrote: >> >> Did you try using check_symbol_exists() ? > > Indeed. > > Ref: > http://public.kitware.com/Bug/view.php?id=8246 > > Solution: > INCLUDE(CheckSymbolExists) > CHECK_SYMBOL_EXISTS(strcasecmp "strings.h"

Re: [CMake] conflicting types for built-in function 'snprintf'

2009-07-09 Thread Mathieu Malaterre
On Wed, Jul 8, 2009 at 11:22 PM, Alexander Neundorf wrote: > On Wednesday 08 July 2009, Steven Van Ingelgem wrote: >> Hi, >> >> >> I tried this call: >> CHECK_FUNCTION_EXISTS(snprintf  HAS_snprintf) >> >> >> Which results in this error being generated: >> C:\MinGW\bin\gcc.exe   -g -ggdb -O0 -Wall -