Merging upstream version 3.12.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6375ddbe5b
commit
580fa3f55c
66 changed files with 4041 additions and 2142 deletions
|
@ -1,7 +1,7 @@
|
|||
add_test(NAME headers
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/compat/check_includes.sh ${CMAKE_SOURCE_DIR}/src/ ${CMAKE_SOURCE_DIR}/tools/lint/ ${CMAKE_SOURCE_DIR}/tools/re/)
|
||||
|
||||
if (${SOURCE_FORMAT_ENABLED})
|
||||
if(${SOURCE_FORMAT_ENABLED})
|
||||
add_test(NAME format WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND cmake --build ${CMAKE_BINARY_DIR} --target format-check)
|
||||
endif()
|
||||
|
||||
|
@ -9,4 +9,8 @@ endif()
|
|||
add_executable(cpp_compat cpp_compat.c $<TARGET_OBJECTS:yangobj>)
|
||||
target_include_directories(cpp_compat BEFORE PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(cpp_compat ${CMAKE_THREAD_LIBS_INIT} ${PCRE2_LIBRARIES} ${CMAKE_DL_LIBS} m)
|
||||
if(XXHASH_FOUND)
|
||||
target_link_libraries(cpp_compat ${XXHASH_LIBRARY})
|
||||
endif()
|
||||
|
||||
target_compile_options(cpp_compat PUBLIC "-Werror=c++-compat")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue