mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-08-29 06:48:12 +02:00
move vendor/secp256k1-0.3.0 to vendor/secp256k1/repo
This commit is contained in:
parent
e8ee3fc0de
commit
9587586968
132 changed files with 0 additions and 0 deletions
23
vendor/secp256k1/repo/cmake/TryAddCompileOption.cmake
vendored
Normal file
23
vendor/secp256k1/repo/cmake/TryAddCompileOption.cmake
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
include(CheckCCompilerFlag)
|
||||
|
||||
function(try_add_compile_option option)
|
||||
string(MAKE_C_IDENTIFIER ${option} result)
|
||||
string(TOUPPER ${result} result)
|
||||
set(result "C_SUPPORTS${result}")
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||
if(NOT MSVC)
|
||||
set(CMAKE_REQUIRED_FLAGS "-Werror")
|
||||
endif()
|
||||
check_c_compiler_flag(${option} ${result})
|
||||
if(${result})
|
||||
get_property(compile_options
|
||||
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
)
|
||||
list(APPEND compile_options "${option}")
|
||||
set_property(
|
||||
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
PROPERTY COMPILE_OPTIONS "${compile_options}"
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
Loading…
Add table
Add a link
Reference in a new issue