Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Nov 26, 2024
1 parent a6a8b83 commit d8a2e35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.7)
project(nCine-Android-${ANDROID_ABI})

# Check if we can use IFUNC for CPU dispatch. This part is already in `ncine_options.cmake`, but we need to check it also against Android NDK toolchain.
Expand Down
3 changes: 2 additions & 1 deletion cmake/ncine_get_version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ if(NCINE_VERSION_FROM_GIT)
# The head ref or source branch of the pull request in a workflow run on GitHub
set(_pullRequestHeadRef "$ENV{GITHUB_HEAD_REF}")
if(_pullRequestHeadRef AND NOT ${_pullRequestHeadRef} STREQUAL "master" AND NOT ${_pullRequestHeadRef} STREQUAL "main")
set(NCINE_VERSION_PATCH "${NCINE_VERSION_PATCH}|${_pullRequestHeadRef}")
string(REPLACE "/" "_" _pullRequestHeadRef ${_pullRequestHeadRef})
set(NCINE_VERSION_PATCH "${NCINE_VERSION_PATCH}-${_pullRequestHeadRef}")
endif()
else()
# The last commit is tagged, use it as version
Expand Down

0 comments on commit d8a2e35

Please sign in to comment.