File: fallback-macros.cmake

package info (click to toggle)
node-yarnpkg 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,752 kB
  • sloc: javascript: 38,953; ansic: 26,035; cpp: 7,247; sh: 2,829; makefile: 724; perl: 493
file content (19 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# fallback-macros.cmake -- CMake fallback macros
# Copyright (C) 2022 Nathan Moinvaziri
# Licensed under the Zlib license, see LICENSE.md for details

# CMake less than version 3.5.2
if(NOT COMMAND add_compile_options)
    macro(add_compile_options options)
        string(APPEND CMAKE_C_FLAGS ${options})
        string(APPEND CMAKE_CXX_FLAGS ${options})
    endmacro()
endif()

# CMake less than version 3.14
if(NOT COMMAND add_link_options)
    macro(add_link_options options)
        string(APPEND CMAKE_EXE_LINKER_FLAGS ${options})
        string(APPEND CMAKE_SHARED_LINKER_FLAGS ${options})
    endmacro()
endif()