@@ -3,21 +3,21 @@ project(ipfixcol)
33
44# Description of the project
55set (
6- IPFIXCOL_DESCRIPTION
7- "IPFIXcol is an implementation of an IPFIX (RFC 7011) collector."
8- )
6+ IPFIXCOL_DESCRIPTION
7+ "IPFIXcol is an implementation of an IPFIX (RFC 7011) collector."
8+ )
99
1010# Check the platform
1111if (NOT UNIX )
12- message (FATAL_ERROR "Only Unix like systems are supported." )
12+ message (FATAL_ERROR "Only Unix like systems are supported." )
1313endif ()
1414
1515# Versions and other informations
1616set (IPFIXCOL_VERSION_MAJOR 2)
1717set (IPFIXCOL_VERSION_MINOR 0)
1818set (IPFIXCOL_VERSION_PATCH 0)
1919set (IPFIXCOL_VERSION
20- ${IPFIXCOL_VERSION_MAJOR} .${IPFIXCOL_VERSION_MINOR} .${IPFIXCOL_VERSION_PATCH} )
20+ ${IPFIXCOL_VERSION_MAJOR} .${IPFIXCOL_VERSION_MINOR} .${IPFIXCOL_VERSION_PATCH} )
2121
2222# Include modules
2323include (CMakeModules/git_info.cmake)
@@ -30,12 +30,12 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules")
3030
3131CHECK_C_COMPILER_FLAG(-std=gnu11 COMPILER_SUPPORT_GNU11)
3232if (NOT COMPILER_SUPPORT_GNU11)
33- message (FATAL_ERROR "Compiler does NOT support C11 with GNU extension" )
33+ message (FATAL_ERROR "Compiler does NOT support C11 with GNU extension" )
3434endif ()
3535
3636CHECK_CXX_COMPILER_FLAG(-std=gnu++11 COMPILER_SUPPORT_GNUXX11)
3737if (NOT COMPILER_SUPPORT_GNUXX11)
38- message (FATAL_ERROR "Compiler does NOT support C++11 with GNU extension" )
38+ message (FATAL_ERROR "Compiler does NOT support C++11 with GNU extension" )
3939endif ()
4040
4141# ------------------------------------------------------------------------------
@@ -44,14 +44,14 @@ set(TESTS_DEFAULT OFF)
4444
4545# Set default build type if not specified by user
4646if (NOT CMAKE_BUILD_TYPE )
47- set (CMAKE_BUILD_TYPE Release
48- CACHE STRING "Choose type of build (Release/Debug/Coverage)." FORCE)
47+ set (CMAKE_BUILD_TYPE Release
48+ CACHE STRING "Choose type of build (Release/Debug/Coverage)." FORCE)
4949endif ()
5050
5151string (TOUPPER ${CMAKE_BUILD_TYPE} BUILD_TYPE_UPPER)
5252# Enable unit tests, by default, for coverage builds
5353if (${BUILD_TYPE_UPPER} STREQUAL "COVERAGE" )
54- set (TESTS_DEFAULT ON )
54+ set (TESTS_DEFAULT ON )
5555endif ()
5656
5757option (ENABLE_DOC_MANPAGE "Enable manual page building" ON )
@@ -82,19 +82,19 @@ add_subdirectory(doc)
8282add_subdirectory (pkg)
8383
8484if (ENABLE_TESTS)
85- enable_testing ()
86- add_subdirectory (tests/unit)
85+ enable_testing ()
86+ add_subdirectory (tests/unit)
8787endif ()
8888
8989# ------------------------------------------------------------------------------
9090# Status messages
9191MESSAGE (STATUS
92- "\n\n "
93- "IPFIXcol version.: ${IPFIXCOL_VERSION} \n "
94- "Install prefix...: ${CMAKE_INSTALL_PREFIX} \n "
95- "Build type.......: ${BUILD_TYPE_UPPER} \n "
96- "C Compiler.......: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} \n "
97- "C Flags..........: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BUILD_TYPE_UPPER} }\n "
98- "C++ Compiler.....: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} \n "
99- "C++ Flags........: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BUILD_TYPE_UPPER} }\n "
92+ "\n\n "
93+ "IPFIXcol version.: ${IPFIXCOL_VERSION} \n "
94+ "Install prefix...: ${CMAKE_INSTALL_PREFIX} \n "
95+ "Build type.......: ${BUILD_TYPE_UPPER} \n "
96+ "C Compiler.......: ${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION} \n "
97+ "C Flags..........: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BUILD_TYPE_UPPER} }\n "
98+ "C++ Compiler.....: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} \n "
99+ "C++ Flags........: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BUILD_TYPE_UPPER} }\n "
100100)
0 commit comments