mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
620 B
20 lines
620 B
12 months ago
|
# 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()
|