Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Feb 13, 2025
1 parent 0d88592 commit 7165d89
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ endif()
set(CMAKE_C_STANDARD 99)

include(CheckCXXCompilerFlag)
include(CheckIncludeFile)
if(NOT ANDROID)
include(CheckIncludeFile)
endif()
include(CheckLanguage)
include(CMakeDependentOption)
include(FetchContent)
Expand Down Expand Up @@ -735,7 +737,10 @@ if (WIN32)
endif()

else()
check_include_file("glob.h" HAVE_GLOB_H)
if(NOT ANDROID)
# On ANDROID it requires ANDROID API level >=28
check_include_file("glob.h" HAVE_GLOB_H)
endif()
check_cxx_compiler_flag(-Wambiguous-reversed-operator HAS_AMBIGUOUS_REVERSED_OPERATOR)
check_cxx_compiler_flag(-Wbitwise-instead-of-logical HAS_BITWISE_INSTEAD_OF_LOGICAL)
check_cxx_compiler_flag(-Wcast-function-type HAS_CAST_FUNCTION_TYPE)
Expand Down

0 comments on commit 7165d89

Please sign in to comment.