blob: 68d0a4fe64e77d2fd5eac02f9a1fdeb27efb9f69 [file] [log] [blame]
Damjan Marion612dd6a2018-07-30 12:45:07 +02001# Copyright (c) 2018 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
Damjan Marionc30f3002021-12-02 14:03:02 +010014cmake_minimum_required(VERSION 3.13)
Damjan Marion612dd6a2018-07-30 12:45:07 +020015
Damjan Marion01fe7ab2023-10-23 18:36:18 +020016if(DEFINED VPP_PLATFORM AND VPP_PLATFORM STREQUAL "default")
17 unset(VPP_PLATFORM)
BenoƮt Ganne9705d842024-01-19 17:43:44 +010018 unset(VPP_PLATFORM CACHE)
Damjan Marion01fe7ab2023-10-23 18:36:18 +020019 set(VPP_PLATFORM_NAME "default")
20elseif(DEFINED VPP_PLATFORM)
21 set(platform_file ${CMAKE_SOURCE_DIR}/cmake/platform/${VPP_PLATFORM}.cmake)
22 if(NOT EXISTS ${platform_file})
23 message(FATAL_ERROR "unknown platform ${VPP_PLATFORM}")
24 endif()
25 include(${platform_file})
26 set(VPP_PLATFORM_NAME ${VPP_PLATFORM})
27else()
28 set(VPP_PLATFORM_NAME "default")
29endif()
30
31if (DEFINED VPP_PLATFORM_C_COMPILER_NAMES)
32 set(CMAKE_C_COMPILER_NAMES ${VPP_PLATFORM_C_COMPILER_NAME})
33else()
34 set(CMAKE_C_COMPILER_NAMES clang gcc cc)
35endif()
Damjan Marion4ba16a42020-04-28 13:29:37 +020036
Damjan Marion612dd6a2018-07-30 12:45:07 +020037project(vpp C)
38
Damjan Marion5546e432021-09-30 20:04:14 +020039if(NOT DEFINED CMAKE_INSTALL_LIBDIR AND EXISTS "/etc/debian_version")
40 set(CMAKE_INSTALL_LIBDIR "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
41endif()
42
Damjan Marion612dd6a2018-07-30 12:45:07 +020043include(CheckCCompilerFlag)
Damjan Marionaf7892c2020-10-22 14:23:47 +020044include(CheckIPOSupported)
Nick Browne3cf4d02021-09-15 14:25:40 +010045include(GNUInstallDirs)
Damjan Marionff426932019-01-26 14:12:25 +010046include(cmake/misc.cmake)
Damjan Mariond16004d2018-08-26 10:14:52 +020047include(cmake/cpu.cmake)
48include(cmake/ccache.cmake)
Damjan Marion612dd6a2018-07-30 12:45:07 +020049
50##############################################################################
Damjan Marionc6c02462018-08-31 17:38:57 +020051# VPP Version
52##############################################################################
53execute_process(
54 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
55 COMMAND scripts/version
56 OUTPUT_VARIABLE VPP_VERSION
57 OUTPUT_STRIP_TRAILING_WHITESPACE
58)
Damjan Marion01fe7ab2023-10-23 18:36:18 +020059
60if (VPP_PLATFORM)
61 set(VPP_VERSION ${VPP_VERSION}-${VPP_PLATFORM_NAME})
62endif()
63
Damjan Marionc6c02462018-08-31 17:38:57 +020064string(REPLACE "-" ";" VPP_LIB_VERSION ${VPP_VERSION})
65list(GET VPP_LIB_VERSION 0 VPP_LIB_VERSION)
66
67##############################################################################
Damjan Marion8cb5d362022-04-14 22:18:19 +020068# compiler specifics
69##############################################################################
70
71set(MIN_SUPPORTED_CLANG_C_COMPILER_VERSION 9.0.0)
72set(MIN_SUPPORTED_GNU_C_COMPILER_VERSION 9.0.0)
73
74if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
75 if (CMAKE_C_COMPILER_VERSION VERSION_LESS MIN_SUPPORTED_CLANG_C_COMPILER_VERSION)
76 set(COMPILER_TOO_OLD TRUE)
77 endif()
78elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
79 if (CMAKE_C_COMPILER_VERSION VERSION_LESS MIN_SUPPORTED_GNU_C_COMPILER_VERSION)
80 set(COMPILER_TOO_OLD TRUE)
81 endif()
Dave Wallace000a4eb2022-08-25 17:42:24 -040082 set(GCC_STRING_OVERFLOW_WARNING_DISABLE_VERSION 10.0.0)
83 if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL GCC_STRING_OVERFLOW_WARNING_DISABLE_VERSION)
84 add_compile_options(-Wno-stringop-overflow)
85 endif()
Jieqiang Wang92ab4072023-07-24 15:42:22 +080086 set(GCC_STRING_OVERREAD_WARNING_DISABLE_VERSION 12.0.0)
87 if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL GCC_STRING_OVERREAD_WARNING_DISABLE_VERSION)
88 add_compile_options(-Wno-stringop-overread)
89 endif()
90 set(GCC_ARRAY_BOUNDS_WARNING_DISABLE_VERSION 12.0.0)
91 if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL GCC_ARRAY_BOUNDS_WARNING_DISABLE_VERSION)
92 add_compile_options(-Wno-array-bounds)
93 endif()
Damjan Marion8cb5d362022-04-14 22:18:19 +020094else()
95 message(WARNING "WARNING: Unsupported C compiler `${CMAKE_C_COMPILER_ID}` is used")
96 set (PRINT_MIN_C_COMPILER_VER TRUE)
97endif()
98if (COMPILER_TOO_OLD)
99 message(WARNING "WARNING: C compiler version is too old and it's usage may result")
100 message(WARNING " in sub-optimal binaries or lack of support for specific CPU types.")
101 set (PRINT_MIN_C_COMPILER_VER TRUE)
102endif()
103
104if (PRINT_MIN_C_COMPILER_VER)
105 string (APPEND _t "Supported C compilers are ")
106 string (APPEND _t "Clang ${MIN_SUPPORTED_CLANG_C_COMPILER_VERSION} or higher ")
107 string (APPEND _t "and GNU ${MIN_SUPPORTED_GNU_C_COMPILER_VERSION} or higher.")
108 message(WARNING " ${_t}")
109 unset (_t)
110endif()
111
112##############################################################################
Damjan Mariondd395292019-01-15 00:36:03 +0100113# cross compiling
114##############################################################################
Tom Jones2cbbbb62024-01-24 10:50:14 +0000115
116if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
117 set(COMPILER_SUFFIX "linux-gnu")
118elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
119 set(COMPILER_SUFFIX "freebsd")
120endif()
121
Damjan Mariondd395292019-01-15 00:36:03 +0100122if(CMAKE_CROSSCOMPILING)
123 set(CMAKE_IGNORE_PATH
Tom Jones2cbbbb62024-01-24 10:50:14 +0000124 /usr/lib/${CMAKE_HOST_SYSTEM_PROCESSOR}-${COMPILER_SUFFIX}/
125 /usr/lib/${CMAKE_HOST_SYSTEM_PROCESSOR}-${COMPILER_SUFFIX}/lib/
Damjan Mariondd395292019-01-15 00:36:03 +0100126 )
127endif()
Tom Jones2cbbbb62024-01-24 10:50:14 +0000128 set(CMAKE_C_COMPILER_TARGET ${CMAKE_SYSTEM_PROCESSOR}-${COMPILER_SUFFIX})
Damjan Mariondd395292019-01-15 00:36:03 +0100129##############################################################################
Damjan Marion612dd6a2018-07-30 12:45:07 +0200130# build config
131##############################################################################
Damjan Marion847d5282019-01-17 18:25:11 +0100132check_c_compiler_flag("-Wno-address-of-packed-member"
133 compiler_flag_no_address_of_packed_member)
Nick Browne3cf4d02021-09-15 14:25:40 +0100134set(VPP_RUNTIME_DIR ${CMAKE_INSTALL_BINDIR} CACHE STRING "Relative runtime directory path")
135set(VPP_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR} CACHE STRING "Relative library directory path")
Damjan Marion847d5282019-01-17 18:25:11 +0100136
Damjan Marion599efc62020-05-07 16:49:45 +0200137set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${VPP_RUNTIME_DIR})
138set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${VPP_LIBRARY_DIR})
Damjan Marion88b2e362021-04-29 18:47:25 +0200139set(VPP_BINARY_DIR ${CMAKE_BINARY_DIR}/CMakeFiles)
Damjan Marion99704b52021-12-09 11:34:44 +0100140set(PYENV PYTHONPYCACHEPREFIX=${CMAKE_BINARY_DIR}/CMakeFiles/__pycache__)
Damjan Marion612dd6a2018-07-30 12:45:07 +0200141
Damjan Marion847d5282019-01-17 18:25:11 +0100142if (CMAKE_BUILD_TYPE)
Damjan Marion9c412e92021-12-03 14:07:41 +0100143 add_compile_options(-g -Werror -Wall)
Damjan Marion33ed3e42018-08-27 15:59:30 +0200144endif()
145
Damjan Marion847d5282019-01-17 18:25:11 +0100146if (compiler_flag_no_address_of_packed_member)
Damjan Marion0d39cba2021-05-10 14:51:44 +0200147 add_compile_options(-Wno-address-of-packed-member)
Damjan Marion847d5282019-01-17 18:25:11 +0100148endif()
149
Damjan Marion0d39cba2021-05-10 14:51:44 +0200150string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LC)
Damjan Marion847d5282019-01-17 18:25:11 +0100151string(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UC)
152
Damjan Marion0d39cba2021-05-10 14:51:44 +0200153set(CMAKE_C_FLAGS_RELEASE "")
154set(CMAKE_C_FLAGS_DEBUG "")
Damjan Marion952a7b82019-11-19 17:58:36 +0100155
Damjan Marion0d39cba2021-05-10 14:51:44 +0200156if (${CMAKE_BUILD_TYPE_LC} MATCHES "release")
157 add_compile_options(-O3 -fstack-protector -fno-common)
158 add_compile_definitions(_FORTIFY_SOURCE=2)
Damjan Marion0d39cba2021-05-10 14:51:44 +0200159elseif (${CMAKE_BUILD_TYPE_LC} MATCHES "debug")
160 add_compile_options(-O0 -fstack-protector -fno-common)
161 add_compile_definitions(CLIB_DEBUG)
162elseif (${CMAKE_BUILD_TYPE_LC} MATCHES "coverity")
163 add_compile_options(-O0)
164 add_compile_definitions(__COVERITY__)
165elseif (${CMAKE_BUILD_TYPE_LC} MATCHES "gcov")
166 add_compile_options(-O0 -fprofile-arcs -ftest-coverage)
167 add_compile_definitions(CLIB_DEBUG CLIB_GCOV)
Dave Wallace1c95e122023-06-21 23:14:38 -0400168 link_libraries(gcov)
Damjan Marion0d39cba2021-05-10 14:51:44 +0200169endif()
170
171set(BUILD_TYPES release debug coverity gcov)
Damjan Marion3a533cd2021-05-03 12:40:27 +0200172string(REPLACE ";" " " BUILD_TYPES_STR "${BUILD_TYPES}")
Damjan Marion952a7b82019-11-19 17:58:36 +0100173set_property(CACHE CMAKE_BUILD_TYPE PROPERTY
Damjan Marion3a533cd2021-05-03 12:40:27 +0200174 HELPSTRING "Build type - valid options are: ${BUILD_TYPES_STR}")
Damjan Marion952a7b82019-11-19 17:58:36 +0100175
Damjan Marion612dd6a2018-07-30 12:45:07 +0200176##############################################################################
Damjan Marionaf7892c2020-10-22 14:23:47 +0200177# link time optimizations
178##############################################################################
179if (CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE")
180 check_ipo_supported(RESULT _result)
181 if (_result)
182 option(VPP_USE_LTO "Link time optimization of release binaries" ON)
183 endif()
184endif()
185
Damjan Marion1e267242021-11-06 17:09:37 +0100186if(VPP_USE_LTO)
187 check_c_compiler_flag("-Wno-stringop-overflow"
188 compiler_flag_no_stringop_overflow)
189endif()
Damjan Marionaf7892c2020-10-22 14:23:47 +0200190##############################################################################
BenoƮt Ganne9fb6d402019-04-15 15:28:21 +0200191# sanitizers
192##############################################################################
193
Damjan Marion599efc62020-05-07 16:49:45 +0200194option(VPP_ENABLE_SANITIZE_ADDR "Enable Address Sanitizer" OFF)
BenoƮt Ganne173484f2020-06-16 12:05:07 +0200195set(VPP_SANITIZE_ADDR_OPTIONS
Damjan Marionec3a3f12020-05-21 19:09:13 +0200196 "unmap_shadow_on_exit=1:disable_coredump=0:abort_on_error=1:detect_leaks=0"
197 CACHE
198 STRING "Address sanitizer arguments"
199)
200
Damjan Marion599efc62020-05-07 16:49:45 +0200201if (VPP_ENABLE_SANITIZE_ADDR)
Damjan Marion0d39cba2021-05-10 14:51:44 +0200202 add_compile_options(-fsanitize=address)
Damjan Marionc30f3002021-12-02 14:03:02 +0100203 add_link_options(-fsanitize=address)
Damjan Marion599efc62020-05-07 16:49:45 +0200204endif (VPP_ENABLE_SANITIZE_ADDR)
BenoƮt Ganne9fb6d402019-04-15 15:28:21 +0200205
206##############################################################################
BenoƮt Gannef89bbbe2021-03-04 14:31:03 +0100207# trajectory trace
208##############################################################################
209
210option(VPP_ENABLE_TRAJECTORY_TRACE "Build vpp with trajectory tracing enabled" OFF)
211if(VPP_ENABLE_TRAJECTORY_TRACE)
Damjan Marion0d39cba2021-05-10 14:51:44 +0200212 add_compile_definitions(VLIB_BUFFER_TRACE_TRAJECTORY=1)
BenoƮt Gannef89bbbe2021-03-04 14:31:03 +0100213endif()
214
215##############################################################################
Damjan Marion01fe7ab2023-10-23 18:36:18 +0200216# unittest with clang code coverage
Ole Troan94323402021-11-11 19:22:12 +0100217##############################################################################
218
219if("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.13" AND "${CMAKE_C_COMPILER_ID}" MATCHES "(Apple)?[Cc]lang")
220 option(VPP_BUILD_TESTS_WITH_COVERAGE "Build unit tests with code coverage" OFF)
221endif()
222
223##############################################################################
Damjan Marion612dd6a2018-07-30 12:45:07 +0200224# install config
225##############################################################################
Nathan Moos2c919222021-01-15 13:28:34 -0800226option(VPP_SET_RPATH "Set rpath for resulting binaries and libraries." ON)
227if(VPP_SET_RPATH)
Damjan Marion5546e432021-09-30 20:04:14 +0200228 set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${VPP_LIBRARY_DIR}")
Nathan Moos2c919222021-01-15 13:28:34 -0800229endif()
Damjan Marion612dd6a2018-07-30 12:45:07 +0200230set(CMAKE_INSTALL_MESSAGE NEVER)
231
Damjan Marion612dd6a2018-07-30 12:45:07 +0200232include_directories (
233 ${CMAKE_SOURCE_DIR}
Damjan Marion88b2e362021-04-29 18:47:25 +0200234 ${VPP_BINARY_DIR}
Damjan Marion612dd6a2018-07-30 12:45:07 +0200235)
236set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "vpp")
237
238set(THREADS_PREFER_PTHREAD_FLAG ON)
239find_package(Threads REQUIRED)
Damjan Marion612dd6a2018-07-30 12:45:07 +0200240
Damjan Marion1ee346a2019-03-18 17:06:51 +0100241include(cmake/syscall.cmake)
Damjan Mariond16004d2018-08-26 10:14:52 +0200242include(cmake/api.cmake)
Damjan Marion4553c952018-08-26 11:04:40 +0200243include(cmake/library.cmake)
244include(cmake/exec.cmake)
Damjan Mariond16004d2018-08-26 10:14:52 +0200245include(cmake/plugin.cmake)
Damjan Marion612dd6a2018-07-30 12:45:07 +0200246
247##############################################################################
Tom Jones5ed27ef2024-01-29 14:38:19 +0000248# FreeBSD - use epoll-shim
249##############################################################################
250set(EPOLL_LIB "")
251if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
252 find_path(EPOLL_SHIM_INCLUDE_DIR NAMES sys/epoll.h HINTS /usr/local/include/libepoll-shim)
253 find_library(EPOLL_SHIM_LIB NAMES epoll-shim HINTS /usr/local/lib)
254
255 if(EPOLL_SHIM_INCLUDE_DIR AND EPOLL_SHIM_LIB)
256 message(STATUS "Found epoll-shim in ${EPOLL_SHIM_INCLUDE_DIR}")
257 include_directories(${EPOLL_SHIM_INCLUDE_DIR})
258 string(JOIN " " EPOLL_LIB "${EPOLL_SHIM_LIB}")
259 endif()
260endif()
261
262##############################################################################
Damjan Marion0abd4a22018-08-28 12:57:29 +0200263# subdirs - order matters
Damjan Marion612dd6a2018-07-30 12:45:07 +0200264##############################################################################
Damjan Marion599efc62020-05-07 16:49:45 +0200265option(VPP_HOST_TOOLS_ONLY "Build only host tools" OFF)
266if(VPP_HOST_TOOLS_ONLY)
267 set(SUBDIRS tools/vppapigen cmake)
Guillaume Solignacde04e022024-01-11 13:39:11 +0100268 install(
269 PROGRAMS
270 vpp-api/vapi/vapi_c_gen.py
271 vpp-api/vapi/vapi_cpp_gen.py
272 vpp-api/vapi/vapi_json_parser.py
273 DESTINATION ${VPP_RUNTIME_DIR}
274 COMPONENT vpp-dev
275 )
Tom Jones2cbbbb62024-01-24 10:50:14 +0000276elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD")
Klement Sekeraefd4d702021-04-20 19:21:36 +0200277 find_package(OpenSSL)
Damjan Marion4dffd1c2018-09-03 12:30:36 +0200278 set(SUBDIRS
Arthur de Kerhorb2819dd2021-09-20 14:47:47 +0200279 vppinfra svm vlib vlibmemory vlibapi vnet vpp vat vat2 vcl vpp-api
280 plugins tools/vppapigen tools/g2 tools/perftool cmake pkg
Dave Barach0729f642019-03-24 16:25:03 -0400281 tools/appimage
Damjan Marion0fa900e2018-09-12 12:12:36 +0200282 )
Damjan Marion4dffd1c2018-09-03 12:30:36 +0200283elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
284 set(SUBDIRS vppinfra)
285else()
286 message(FATAL_ERROR "Unsupported system: ${CMAKE_SYSTEM_NAME}")
287endif()
288
289foreach(DIR ${SUBDIRS})
Damjan Marion88b2e362021-04-29 18:47:25 +0200290 add_subdirectory(${DIR} ${VPP_BINARY_DIR}/${DIR})
Damjan Marion0abd4a22018-08-28 12:57:29 +0200291endforeach()
Damjan Marion612dd6a2018-07-30 12:45:07 +0200292
Damjan Marioneeadc142018-09-13 20:02:12 +0200293##############################################################################
Damjan Marionc6c02462018-08-31 17:38:57 +0200294# detect if we are inside git repo and add configure dependency
295##############################################################################
296execute_process(
297 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
298 COMMAND git rev-parse --show-toplevel
299 OUTPUT_VARIABLE VPP_GIT_TOPLEVEL_DIR
300 OUTPUT_STRIP_TRAILING_WHITESPACE
Damjan Marion6077c972019-01-28 17:55:59 +0100301 ERROR_QUIET
Damjan Marionc6c02462018-08-31 17:38:57 +0200302)
303
304if (VPP_GIT_TOPLEVEL_DIR)
305 set_property(
306 DIRECTORY APPEND PROPERTY
307 CMAKE_CONFIGURE_DEPENDS ${VPP_GIT_TOPLEVEL_DIR}/.git/index
308 )
309endif()
310
311##############################################################################
Damjan Marion88b2e362021-04-29 18:47:25 +0200312# custom targets
313##############################################################################
314
315add_custom_target(run
316 COMMAND ./${VPP_RUNTIME_DIR}/vpp -c startup.conf
317 COMMENT "Starting VPP..."
318 USES_TERMINAL
319)
320
321add_custom_target(debug
322 COMMAND gdb --args ./${VPP_RUNTIME_DIR}/vpp -c startup.conf
323 COMMENT "Starting VPP in the debugger..."
324 USES_TERMINAL
325)
326
Damjan Marionc8983242021-04-30 19:31:09 +0200327add_custom_target(config
Damjan Marion88b2e362021-04-29 18:47:25 +0200328 COMMAND ccmake ${CMAKE_BINARY_DIR}
329 COMMENT "Starting Configuration TUI..."
330 USES_TERMINAL
331)
332
Damjan Marion3a533cd2021-05-03 12:40:27 +0200333foreach(bt ${BUILD_TYPES})
334 add_custom_target(set-build-type-${bt}
335 COMMAND cmake -DCMAKE_BUILD_TYPE:STRING=${bt} .
336 COMMENT "Changing build type to ${bt}"
337 USES_TERMINAL
338 )
339endforeach()
340
Damjan Marion0d39cba2021-05-10 14:51:44 +0200341mark_as_advanced(CLEAR
342 CMAKE_C_FLAGS
343 CMAKE_C_COMPILER
344 CMAKE_EXPORT_COMPILE_COMMANDS
345 CMAKE_INSTALL_PREFIX
346 CMAKE_LINKER
347 CMAKE_SHARED_LINKER_FLAGS
348 CMAKE_VERBOSE_MAKEFILE
349)
350
Damjan Marion88b2e362021-04-29 18:47:25 +0200351##############################################################################
Damjan Marionc6c02462018-08-31 17:38:57 +0200352# print configuration
353##############################################################################
354message(STATUS "Configuration:")
Damjan Marion01fe7ab2023-10-23 18:36:18 +0200355pr("VPP platform" ${VPP_PLATFORM_NAME})
Damjan Marionf2912e02021-07-16 12:44:22 +0200356pr("VPP version" ${VPP_VERSION})
357pr("VPP library version" ${VPP_LIB_VERSION})
358pr("GIT toplevel dir" ${VPP_GIT_TOPLEVEL_DIR})
359pr("Build type" ${CMAKE_BUILD_TYPE})
Damjan Mariond545f042022-03-25 00:05:53 +0100360pr("C compiler" "${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID} ${CMAKE_C_COMPILER_VERSION})")
Damjan Marionf2912e02021-07-16 12:44:22 +0200361pr("C flags" ${CMAKE_C_FLAGS}${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UC}})
362pr("Linker flags (apps)" ${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE_UC}})
363pr("Linker flags (libs)" ${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS_${CMAKE_BUILD_TYPE_UC}})
364pr("Host processor" ${CMAKE_HOST_SYSTEM_PROCESSOR})
365pr("Target processor" ${CMAKE_SYSTEM_PROCESSOR})
366pr("Prefix path" ${CMAKE_PREFIX_PATH})
367pr("Install prefix" ${CMAKE_INSTALL_PREFIX})
Damjan Marion2e3a79f2021-11-05 20:08:05 +0100368pr("Library dir" ${VPP_LIBRARY_DIR})
Damjan Marion45e05392022-04-25 12:38:40 +0200369pr("Multiarch variants" ${MARCH_VARIANTS_NAMES})