Skip to content

Commit

Permalink
update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Bać committed Mar 16, 2024
1 parent 7001839 commit 58b1a7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ project(small_vectors
LANGUAGES CXX
HOMEPAGE_URL "https://github.com/arturbac/small_vectors"
)
include(GNUInstallDirs)
include(FeatureSummary)

include(GNUInstallDirs)
if( PROJECT_IS_TOP_LEVEL )
include(FeatureSummary)
endif()
if( PROJECT_IS_TOP_LEVEL )
message(STATUS "small_vectors v${small_vectors_version}")
endif()
Expand Down Expand Up @@ -41,21 +42,21 @@ endif()
#-----------------------------------------------------------------------------
# options
#-----------------------------------------------------------------------------
if(SMALL_VECTORS_ENABLE_CPM_PACKAGING)
if(SMALL_VECTORS_ENABLE_CPM_PACKAGING AND PROJECT_IS_TOP_LEVEL )
option(SMALL_VECTORS_ENABLE_UNIT_TESTS "unit tests available from CTest" ${PROJECT_IS_TOP_LEVEL} )
add_feature_info("SMALL_VECTORS_ENABLE_UNIT_TESTS" SMALL_VECTORS_ENABLE_UNIT_TESTS "unit test available from CTest")
else()
set(SMALL_VECTORS_ENABLE_UNIT_TESTS OFF)
endif()

if(SMALL_VECTORS_ENABLE_UNIT_TESTS)
if(SMALL_VECTORS_ENABLE_UNIT_TESTS AND PROJECT_IS_TOP_LEVEL )
#----------------------------------------------------------------
# boost-ext/ut
#----------------------------------------------------------------
CPMAddPackage(
ut
GITHUB_REPOSITORY boost-ext/ut
GIT_TAG v1.1.9
GITHUB_REPOSITORY arturbac/ut-ext
GIT_TAG master
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion include/small_vectors/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

#define SMALL_VECTORS_VERSION "3.1.0"
#define SMALL_VECTORS_VERSION "3.1.1"

0 comments on commit 58b1a7b

Please sign in to comment.