Skip to content

Commit 04b8c84

Browse files
authored
Merge pull request #26 from alexbatalov/main
Pull changes from alexbatalov
2 parents 2657491 + d586e81 commit 04b8c84

5 files changed

Lines changed: 13 additions & 34 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/cache@v4
6464
with:
6565
path: os/android/app/.cxx
66-
key: android-cmake-v1
66+
key: android-cmake-v2
6767

6868
- name: Setup signing config
6969
if: env.KEYSTORE_FILE_BASE64 != '' && env.KEYSTORE_PROPERTIES_FILE_BASE64 != ''
@@ -104,7 +104,7 @@ jobs:
104104
uses: actions/cache@v4
105105
with:
106106
path: build
107-
key: ios-cmake-v3
107+
key: ios-cmake-v4
108108

109109
- name: Configure
110110
run: |
@@ -174,7 +174,7 @@ jobs:
174174
uses: actions/cache@v4
175175
with:
176176
path: build
177-
key: linux-${{ matrix.arch }}-cmake-v1
177+
key: linux-${{ matrix.arch }}-cmake-v3
178178

179179
- name: Configure (x86)
180180
if: matrix.arch == 'x86'
@@ -224,7 +224,7 @@ jobs:
224224
uses: actions/cache@v4
225225
with:
226226
path: build
227-
key: macos-cmake-v5
227+
key: macos-cmake-v6
228228

229229
- name: Configure
230230
run: |
@@ -279,7 +279,7 @@ jobs:
279279
uses: actions/cache@v4
280280
with:
281281
path: build
282-
key: windows-${{ matrix.arch }}-cmake-v1
282+
key: windows-${{ matrix.arch }}-cmake-v2
283283

284284
- name: Configure
285285
run: |

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ if(APPLE)
366366
endif()
367367

368368
add_subdirectory("third_party/fpattern")
369-
target_link_libraries(${EXECUTABLE_NAME} ${FPATTERN_LIBRARY})
370-
target_include_directories(${EXECUTABLE_NAME} PRIVATE ${FPATTERN_INCLUDE_DIR})
369+
target_link_libraries(${EXECUTABLE_NAME} fpattern::fpattern)
371370

372371
if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"))
373372
add_subdirectory("third_party/zlib")

src/dfile.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <algorithm>
99

10-
#include <fpattern.h>
10+
#include <fpattern/fpattern.h>
1111

1212
#include "platform_compat.h"
1313

src/file_find.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stddef.h>
44
#include <string.h>
55

6-
#include <fpattern.h>
6+
#include <fpattern/fpattern.h>
77

88
namespace fallout {
99

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,10 @@
11
include(FetchContent)
22

33
FetchContent_Declare(fpattern
4-
GIT_REPOSITORY "https://github.com/Loadmaster/fpattern"
5-
GIT_TAG "v1.9"
4+
GIT_REPOSITORY "https://github.com/alexbatalov/fpattern"
5+
GIT_TAG 8523173ec252c3b796fcdfca0fcc6329642fbbe3 # v1.9
6+
GIT_SHALLOW TRUE
7+
GIT_PROGRESS TRUE
68
)
79

8-
FetchContent_GetProperties(fpattern)
9-
if (NOT fpattern_POPULATED)
10-
FetchContent_Populate(fpattern)
11-
endif()
12-
13-
if(MSVC)
14-
set(CMAKE_DEBUG_POSTFIX "d")
15-
endif()
16-
17-
add_library(fpattern STATIC
18-
"${fpattern_SOURCE_DIR}/debug.h"
19-
"${fpattern_SOURCE_DIR}/fpattern.c"
20-
"${fpattern_SOURCE_DIR}/fpattern.h"
21-
)
22-
23-
if(NOT WIN32)
24-
target_compile_definitions(fpattern PRIVATE
25-
"-Dunix"
26-
)
27-
endif()
28-
29-
set(FPATTERN_LIBRARY "fpattern" PARENT_SCOPE)
30-
set(FPATTERN_INCLUDE_DIR "${fpattern_SOURCE_DIR}" PARENT_SCOPE)
10+
FetchContent_MakeAvailable(fpattern)

0 commit comments

Comments
 (0)