1 /***************************************************************************
4 * Template file processed by cmake to set all define switches for this build
5 * according to the cmake build options.
7 * Part of FOXXLL. See http://foxxll.org
12 * Distributed under the Boost Software License, Version 1.0.
13 * (See accompanying file LICENSE_1_0.txt or copy at
14 * http://www.boost.org/LICENSE_1_0.txt)
15 **************************************************************************/
17 #ifndef FOXXLL_CONFIG_HEADER
18 #define FOXXLL_CONFIG_HEADER
20 // the FOXXLL library version variables
21 #define FOXXLL_VERSION_MAJOR ${FOXXLL_VERSION_MAJOR}
22 #define FOXXLL_VERSION_MINOR ${FOXXLL_VERSION_MINOR}
23 #define FOXXLL_VERSION_PATCH ${FOXXLL_VERSION_PATCH}
24 #define FOXXLL_VERSION_STRING "${FOXXLL_VERSION_STRING}"
25 #define FOXXLL_VERSION_PHASE "${FOXXLL_VERSION_PHASE}"
27 // if this is a git repository, add the refspec and commit sha
28 #cmakedefine FOXXLL_VERSION_GIT_REFSPEC "${FOXXLL_VERSION_GIT_REFSPEC}"
29 #cmakedefine FOXXLL_VERSION_GIT_SHA1 "${FOXXLL_VERSION_GIT_SHA1}"
31 #cmakedefine FOXXLL_DIRECT_IO_OFF ${FOXXLL_DIRECT_IO_OFF}
32 // default: 0/1 (platform dependent)
33 // cmake: detection of platform and flag
34 // effect: disables use of O_DIRECT flag on unsupported platforms
36 #cmakedefine FOXXLL_HAVE_MMAP_FILE ${FOXXLL_HAVE_MMAP_FILE}
37 // default: 0/1 (platform dependent)
38 // used in: io/mmap_file.h/cpp
39 // effect: enables/disables memory mapped file implementation
41 #cmakedefine FOXXLL_HAVE_LINUXAIO_FILE ${FOXXLL_HAVE_LINUXAIO_FILE}
42 // default: 0/1 (platform dependent)
43 // used in: io/linuxaio_file.h/cpp
44 // effect: enables/disables Linux AIO file implementation
46 #cmakedefine FOXXLL_WINDOWS ${FOXXLL_WINDOWS}
48 // cmake: detection of ms windows platform
49 // effect: enables windows-specific api calls (mingw or msvc)
51 #cmakedefine FOXXLL_MSVC ${FOXXLL_MSVC}
53 // cmake: detection of ms visual c++ via CMake (contains version number)
54 // effect: enables msvc-specific headers and macros
56 #cmakedefine FOXXLL_WITH_VALGRIND ${FOXXLL_WITH_VALGRIND}
58 // cmake: option USE_VALGRIND=ON
59 // effect: run all tests with valgrind and pre-initialize some memory buffers
61 #endif // !FOXXLL_CONFIG_HEADER