Skip to content

Commit

Permalink
feat: build system improvements (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni authored Oct 18, 2024
1 parent 51c062e commit 41ae580
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(infrastructure VERSION 0 LANGUAGES CXX C)

Expand Down Expand Up @@ -451,7 +451,7 @@ endif()

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)
set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)
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 KnuthInfrastructureConan(KnuthConanFileV2):
url = "https://github.com/knuth/infrastructure"
description = "Multicrypto Cross-Platform C++ Development Toolkit"
settings = "os", "compiler", "build_type", "arch"
package_type = "library"

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

0 comments on commit 41ae580

Please sign in to comment.