[CMake] Linking with boost

2014-03-13 Thread Lloyd
Hi, Our project uses boost on Windows. Except thread library, all other library need to be linked statically. To achieve this, what I did is this ADD_DEFINITIONS(-D BOOST_THREAD_DYN_DLL) set(Boost_USE_STATIC_LIBSON) set(Boost_USE_MULTITHREADED ON) find_package( Boost COMPONENTS threa

Re: [CMake] Fortran_FORMAT

2014-03-13 Thread Nils Gladitz
On 13.03.2014 17:40, Jack Stalnaker wrote: Can someone provide an example of Fortran_FORMAT in use? I cannot find anything other than a definition of the property online. Does one use I am not much of a Fortran person but: cmake_minimum_required(VERSION 2.8.12) project(Foo Fortran)

[CMake] Fortran_FORMAT

2014-03-13 Thread Jack Stalnaker
Can someone provide an example of Fortran_FORMAT in use? I cannot find anything other than a definition of the property online. Does one use set_target_properties(tgt PROPERTIES Fortran_FORMAT "FREE") ? That doesn't seem to alter the compiler flags. -- Powered by www.kitware.com Please keep me

Re: [CMake] Index CMake strings

2014-03-13 Thread Petr Kmoch
Hi Micha, the CMake equivalent code would be: string(SUBSTRING "${Str}" 3 1 c) Petr On Thu, Mar 13, 2014 at 10:27 AM, Micha Renner wrote: > Hallo, > > is it possible to index CMake strings. > In C it would something like this: > > char c = Str[3]; > > Micha > > > -- > > Powered by www.kitwa

[CMake] Index CMake strings

2014-03-13 Thread Micha Renner
Hallo, is it possible to index CMake strings. In C it would something like this: char c = Str[3]; Micha -- 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 communit

Re: [CMake] Building a Mac OS X framework

2014-03-13 Thread Eric Wing
On 3/10/14, neoagge...@gmail.com wrote: > Hi, > > Is there any *recent* guide that describes how to build a Mac OS X framework > using CMake. All I could find in Google was a 2009 discussion in this list > and a largely outdated (i think) page in the cmake wiki. > > I currently handle that in my p