Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Aug 28, 2024
1 parent 2fa2e28 commit 32c0046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions thirdparty/catch2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ model {
"${nativeName}"(NativeLibrarySpec) {
sources.cpp {
source {
srcDirs "src/main/native/cpp/**/*.cpp"
include '*.cpp'
srcDirs "src/main/native/cpp"
include '**/*.cpp'
}
exportedHeaders {
srcDirs 'src/main/native/include',
Expand Down
8 changes: 4 additions & 4 deletions thirdparty/catch2/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ task cppSourcesZip(type: Zip) {
into '/'
}

from('src') {
from('src/main/native/cpp') {
into '/'
}
}
Expand All @@ -29,7 +29,7 @@ task cppHeadersZip(type: Zip) {
into '/'
}

from('include') {
from('src/main/native/include') {
into '/'
}
}
Expand All @@ -42,11 +42,11 @@ addTaskToCopyAllOutputs(cppSourcesZip)

model {
publishing {
def googletestTaskList = createComponentZipTasks($.components, ['catch2'], zipBaseName, Zip, project, includeStandardZipFormat)
def catch2TaskList = createComponentZipTasks($.components, ['catch2'], zipBaseName, Zip, project, includeStandardZipFormat)

publications {
cpp(MavenPublication) {
googletestTaskList.each {
catch2TaskList.each {
artifact it
}

Expand Down

0 comments on commit 32c0046

Please sign in to comment.