Skip to content

Commit

Permalink
build, refactor: include check for compare header in abseil CMakeList…
Browse files Browse the repository at this point in the history
…s.txt.
  • Loading branch information
xicilion committed Jul 19, 2024
1 parent 9b2d863 commit 0fe7971
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions abseil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ cmake_minimum_required(VERSION 3.5)

include_directories("${PROJECT_SOURCE_DIR}/absl")

if("${BUILD_OS}" STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
include(CheckIncludeFileCXX)
unset(HAS_COMPARE CACHE)
CHECK_INCLUDE_FILE_CXX(compare HAS_COMPARE)

if(NOT HAS_COMPARE)
include_directories("${PROJECT_SOURCE_DIR}/../libc/include/10")
endif()


set(src_folder "absl")

include(../build_tools/cmake/Library.cmake)

0 comments on commit 0fe7971

Please sign in to comment.