parent
1e9b251be8
commit
bcc275454d
|
@ -20,3 +20,15 @@ endif()
|
|||
|
||||
# With these set in scope of this folder, load the library's own CMakeLists.txt.
|
||||
add_subdirectory(source)
|
||||
|
||||
# Clang builds of absl::time fail due to the inclusion of -Wconversion without
|
||||
# -Wno-implicit-int-conversion. However, we can't add that with
|
||||
# add_compile_options beforehand, because those flags go in before absl's
|
||||
# -Wconversion flag gets added. We can, however, add
|
||||
# -Wno-implicit-int-conversion to each necessary target after it is defined.
|
||||
# This will append after absl's own flags.
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(absl_civil_time PUBLIC -Wno-implicit-int-conversion)
|
||||
target_compile_options(absl_time PUBLIC -Wno-implicit-int-conversion)
|
||||
target_compile_options(absl_time_zone PUBLIC -Wno-implicit-int-conversion)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue