Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/CMakeLists.txt
# Copyright (c) 2017 The Bitcoin developers | # Copyright (c) 2017 The Bitcoin developers | ||||
cmake_minimum_required(VERSION 3.5) | cmake_minimum_required(VERSION 3.5) | ||||
project(secp256k1) | project(secp256k1) | ||||
# libsecp256k1 use a different set of flags. | # libsecp256k1 use a different set of flags. | ||||
add_compiler_flag( | add_compiler_flag( | ||||
-pedantic | -pedantic | ||||
-Wshadow | -Wcast-align | ||||
-Wno-unused-function | -Wno-unused-function | ||||
-Wno-nonnull | |||||
-Wno-overlength-strings | -Wno-overlength-strings | ||||
) | ) | ||||
add_c_compiler_flag( | add_c_compiler_flag( | ||||
-std=c89 | -std=c89 | ||||
-Wno-long-long | -Wno-long-long | ||||
-Wnested-externs | |||||
-Wstrict-prototypes | |||||
) | ) | ||||
# Default visibility is hidden on all targets. | # Default visibility is hidden on all targets. | ||||
set(CMAKE_C_VISIBILITY_PRESET hidden) | set(CMAKE_C_VISIBILITY_PRESET hidden) | ||||
include_directories( | include_directories( | ||||
. | . | ||||
src | src | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |