Skip to content

Commit e2fcf6a

Browse files
committed
build(cmake): fix embeded dependency
replace embeded with vcpkg controled
1 parent 6d3909c commit e2fcf6a

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED true)
88
#
99
# Project details
1010
#
11-
project("stdsharp" VERSION 0.2.1 LANGUAGES CXX)
11+
project("stdsharp" VERSION 0.2.2 LANGUAGES CXX)
1212

1313
init_proj()
1414

@@ -19,16 +19,7 @@ config_interface_lib(${PROJECT_NAME})
1919
#
2020
find_package(fmt CONFIG REQUIRED)
2121
find_package(range-v3 CONFIG REQUIRED)
22-
23-
message(STATUS "adding ctre")
24-
include(FetchContent)
25-
FetchContent_Declare(
26-
ctre
27-
GIT_REPOSITORY https://github.com/hanickadot/compile-time-regular-expressions.git
28-
GIT_TAG 5b914a62c71c6c6b336fd466a4e812db635b9fdc
29-
)
30-
FetchContent_MakeAvailable(ctre)
31-
target_include_as_system(ctre INTERFACE)
22+
find_package(ctre CONFIG REQUIRED)
3223

3324
target_compile_options(
3425
${PROJECT_NAME}

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "stdsharp",
33
"version": "0.1.0",
4-
"dependencies": ["fmt", "range-v3"]
4+
"dependencies": ["fmt", "range-v3", "ctre"]
55
}

0 commit comments

Comments
 (0)