Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Building the test suite

This section contains the instructions for building and running the test cases and documentatation examples that are packaged with Boost.CallableTraits.

[Note] Note

Some test cases that use language features that do not work on some supported compilers. These conflicts are "resolved" by replacing int main(){} with the actual test via conditional compilation.

Dependencies

Even though the Boost.CallableTraits headers do not rely on external dependencies, you'll need to install CMake version 3.5 or higher to run the full test suite. The build instructions assume that both CMake and Git are available from your environment PATH. Boost.Build is also supported.

Linux/OSX - clone and run test suite

Open a shell and enter the following commands:

git clone http://github.com/boostorg/callable_traits
cd callable_traits
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=/path/to/compiler
make check

Windows - clone and run test suite

[Note] Note

Cygwin and MSYS users should refer to the Linux section (you know who you are).

Fire up cmd.exe and enter the following commands:

git clone http://github.com/boostorg/callable_traits
cd callable_traits
mkdir build
cd build
cmake ..
path\to\msbuild.exe check.vcxproj /t:build /p:Configuration=Debug /p:Platform=Win32 /v:n /nologo

To build with Clang/C2 instead of MSVC, append -TLLVM-vs2014 (or similar supported flag) to the CMake arguments. This will only work if you have Clang/C2 installed.


PrevUpHomeNext