Open daemon opened 2 years ago
This also happens when building any CMake project with abseil dependencies and
set(CMAKE_INCLUDE_CURRENT_DIR ON)
I just ran into this trying to use abseil from an LLVM external project. LLVM is built with CMAKE_INCLUDE_CURRENT_DIR=ON
. This took me forever to find. Maybe abseil should set CMAKE_INCLUDE_CURRENT_DIR=OFF
in its CMakeLists.txt
?
Describe the bug
absl/time/time.h
masks time.h/ctime if the current directory is in the include directory. This happens if, say,$CPATH
contains an empty directory.Steps to reproduce the bug
What version of Abseil are you using?
c59e7e5.
What operating system and version are you using
Ubuntu 18.04.3 LTS.
What compiler and version are you using?
What build system are you using?
cmake version 3.19.6