File: variables.cmake

package info (click to toggle)
tomlplusplus 3.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,184 kB
  • sloc: cpp: 35,145; ansic: 2,220; python: 983; makefile: 25; sh: 17
file content (18 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ---- Warning guard ----

# target_include_directories with the SYSTEM modifier will request the compiler
# to omit warnings from the provided paths, if the compiler supports that
# This is to provide a user experience similar to find_package when
# add_subdirectory or FetchContent is used to consume this project
set(tomlplusplus_warning_guard "")
if(NOT PROJECT_IS_TOP_LEVEL)
  option(
      tomlplusplus_INCLUDES_WITH_SYSTEM
      "Use SYSTEM modifier for tomlplusplus's includes, disabling warnings"
      ON
  )
  mark_as_advanced(tomlplusplus_INCLUDES_WITH_SYSTEM)
  if(tomlplusplus_INCLUDES_WITH_SYSTEM)
    set(tomlplusplus_warning_guard SYSTEM)
  endif()
endif()