Skip to content

Commit

Permalink
feat: build system improvements (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni authored Oct 18, 2024
1 parent 1ed105c commit 9bde3e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.20)

project(network VERSION 0 LANGUAGES CXX C)

Expand Down Expand Up @@ -166,7 +166,7 @@ set(kth_sources

add_library(${PROJECT_NAME} ${MODE} ${kth_sources} ${kth_headers})
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX CXX_STANDARD 20 CXX_STANDARD_REQUIRED TRUE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX CXX_STANDARD 23 CXX_STANDARD_REQUIRED TRUE)


if (ENABLE_POSITION_INDEPENDENT_CODE)
Expand Down
1 change: 1 addition & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class KnuthNetworkConan(KnuthConanFileV2):
url = "https://github.com/k-nuth/network"
description = "Crypto P2P Network Library"
settings = "os", "compiler", "build_type", "arch"
package_type = "library"

options = {
"shared": [True, False],
Expand Down

0 comments on commit 9bde3e9

Please sign in to comment.