Re: [CMake] FindBoost Warnings

2019-09-24 Thread Brad Bell
CMake version 3.10.2 seems to have the problem and it seems to be fixed in 3.13.4. Thanks On 9/23/19 6:14 AM, Roger Leigh wrote: On 23/09/2019 14:05, Brad Bell wrote: When the target system does not have boost, the user gets the warning: CMake Warning at /usr/share/cmake-3.10/Modules

[CMake] FindBoost Warnings

2019-09-23 Thread Brad Bell
I am using FindBoost in a cmake script to determine if certain components of the boost package are available on the target system. If so, the script builds examples that use my package with boost. If not, these example are not built and tested. When the target system does not have boost, the

Re: [CMake] PROJECT( LANGUAGES ) and m4

2017-01-08 Thread Brad Bell
/2017 05:37 AM, Brad Bell wrote: If one looks at the documentation https://cmake.org/cmake/help/v3.0/command/project.html one sees project( [LANGUAGES] [...]) and the following text: 'By default C and CXX are enabled if no language options are given.' It there a list of available languages

[CMake] PROJECT( LANGUAGES ) and m4

2017-01-06 Thread Brad Bell
If one looks at the documentation https://cmake.org/cmake/help/v3.0/command/project.html one sees project( [LANGUAGES] [...]) and the following text: 'By default C and CXX are enabled if no language options are given.' It there a list of available languages ? I have a project that has

[CMake] detecting if c++11 available

2013-02-19 Thread Brad Bell
My goal is to use some new c++11 features if they are available, otherwise to stick to the c++03 features. I need to build test programs that check for correctness as well as distribute an include file library. Is there a way in cmake to detect if c++11 is available and to use it when it is

Re: [CMake] ADD_CUSTOM_TARGET

2013-01-17 Thread Brad Bell
On 01/16/2013 02:21 PM, Andreas Pakulat wrote: Hi, On Wed, Jan 16, 2013 at 11:01 PM, bradb...@seanet.com wrote: The problem is that the script fails when using cmake 2.6. I want to know if this is expected or a bug ? I filed a bug report with Red-Hat 6, but they just decided to ignore it.

[CMake] ADD_CUSTOM_TARGET

2013-01-15 Thread Brad Bell
I am trying to build a project for Red-hat 6 which uses the following cmake version bradbell@gorst trash]$ cmake --version cmake version 2.6-patch 4 While doing so I am having trouble with the ADD_CUSTOM_TARGET. To be specifc, after building a custom target, cmake seems to forget it

Re: [CMake] Building a library for both C and C++

2013-01-09 Thread Brad Bell
I have the same problem. The reason for the problem is that I am comparing the speed of the exact same source code compiled by C and C++. I have heard folk lore that C is faster, so I want an automated test to check for this for an arbitrary hardware and compiler. What I did was to create two

[CMake] CMAKE_C_FLAGS and CMAKE_CXX_FLAGS

2012-11-11 Thread Brad Bell
Would someone please point me to the specifications for CMAKE_C_FLAGS and CMAKE_CXX_FLAGS in http://www.cmake.org/cmake/help/cmake2.6docs.html (or perhaps for CMAKE_C_FLAGS_rel and CMAKE_CXX_FLAG_rel where rel is DEBUG or RELEASE). These flags are used by the Modules distributed with

[CMake] CMakeLists.txt options.

2012-10-28 Thread Brad Bell
The CMakeLists.txt command option( option_variable help string describing option [initial value] ) Provides an option for the user to select as ON or OFF; i.e., a BOOL. How does one provide an option for the user to select that is a PATH ? -- Powered by www.kitware.com Visit other

[CMake] Changing name of CMakeLists.txt file

2010-01-17 Thread Brad Bell
Is it possible to use a different name in place of CMakeLists.txt ? I am considering using CMake, but I want to conform the to one of the boost guidelines at http://www.boost.org/development/requirements.html In particular, under the heading Directory Structure and Filenames the