Skip to content

Commit

Permalink
fixup! cmake: Build secp256k1 static library
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Nov 6, 2023
1 parent 077a534 commit e26415b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cmake/secp256k1.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2023 The Bitcoin Core developers
# Copyright (c) 2023-present The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# file COPYING or https://opensource.org/license/mit/.

# This file is part of the transition from Autotools to CMake. Once CMake
# support has been merged we should switch to using the upstream CMake
Expand Down Expand Up @@ -48,9 +48,13 @@ target_include_directories(secp256k1
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/secp256k1/include>
)

target_compile_options(secp256k1
PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/wd4146 /wd4334>
)
if(MSVC)
target_compile_options(secp256k1
PRIVATE
/wd4146
/wd4244
/wd4267
)
endif()

target_link_libraries(secp256k1 PRIVATE core)

0 comments on commit e26415b

Please sign in to comment.