Skip to content

Commit

Permalink
CMake: Update minimal version and fetching google test
Browse files Browse the repository at this point in the history
  • Loading branch information
blishko committed Sep 4, 2024
1 parent 876b776 commit 3f57615
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.14)

set(OPENSMT_VERSION_MAJOR 2)
set(OPENSMT_VERSION_MINOR 7)
Expand Down
9 changes: 3 additions & 6 deletions parallel-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
GIT_TAG v1.15.2
EXCLUDE_FROM_ALL
)

FetchContent_GetProperties(googletest)
if(NOT googletest_POPULATED)
FetchContent_Populate(googletest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(googletest)

add_subdirectory(unit)

9 changes: 3 additions & 6 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.14.0
GIT_TAG v1.15.2
EXCLUDE_FROM_ALL
)

FetchContent_GetProperties(googletest)
if(NOT googletest_POPULATED)
FetchContent_Populate(googletest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(googletest)

add_subdirectory(unit)

0 comments on commit 3f57615

Please sign in to comment.