mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 01:21:36 +08:00
5eae23f558
* [azure-kinect-sensor-sdk] fix linux build and other issues
- linux: warnings stopping the build
- linux: set correct casing for dependecies
- linux: depthengine
- upgrade to 1.4.1
* Update ports/azure-kinect-sensor-sdk/CONTROL
* Update ports/azure-kinect-sensor-sdk/portfile.cmake
* Force to re-download archive, revert 9cd44db8e3
* update version record
* Update ports/azure-kinect-sensor-sdk/CONTROL
* Update versions/a-/azure-kinect-sensor-sdk.json
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
diff --git a/cmake/k4aCompilerFlags.cmake b/cmake/k4aCompilerFlags.cmake
|
|
index e938c907..ccea0a8e 100644
|
|
--- a/cmake/k4aCompilerFlags.cmake
|
|
+++ b/cmake/k4aCompilerFlags.cmake
|
|
@@ -34,22 +34,16 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
|
list(APPEND CLANG_ALL_WARNINGS "-Wno-extra-semi-stmt") # Allow semi-colons to be used after #define's
|
|
list(APPEND CLANG_ALL_WARNINGS "-Wno-atomic-implicit-seq-cst") # Allow use of __sync_add_and_fetch() atomic
|
|
endif()
|
|
- set(CLANG_WARNINGS_AS_ERRORS "-Werror")
|
|
add_compile_options(${CLANG_ALL_WARNINGS})
|
|
- add_compile_options(${CLANG_WARNINGS_AS_ERRORS})
|
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
|
set(GNU_ALL_WARNINGS "-Wall" "-Wextra")
|
|
list(APPEND GNU_ALL_WARNINGS "-Wno-missing-field-initializers") # Allow c structs without all fields initialized
|
|
- set(GNU_WARNINGS_AS_ERRORS "-Werror")
|
|
add_compile_options(${GNU_ALL_WARNINGS})
|
|
- add_compile_options(${GNU_WARNINGS_AS_ERRORS})
|
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
|
|
set(MSVC_ALL_WARNINGS "/W4" "/wd4200") #Note: allow zero length arrays
|
|
- set(MSVC_WARNINGS_AS_ERRORS "/WX")
|
|
string(REGEX REPLACE " /W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
string(REGEX REPLACE " /W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
|
add_compile_options(${MSVC_ALL_WARNINGS})
|
|
- add_compile_options(${MSVC_WARNINGS_AS_ERRORS})
|
|
else()
|
|
message(FATAL_ERROR "Unknown C++ compiler: ${CMAKE_CXX_COMPILER_ID}")
|
|
endif()
|
|
diff --git a/src/logging/logging.cpp b/src/logging/logging.cpp
|
|
index 05264c5f..6cd41d32 100644
|
|
--- a/src/logging/logging.cpp
|
|
+++ b/src/logging/logging.cpp
|
|
@@ -15,6 +15,7 @@
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
+#include <stdarg.h>
|
|
|
|
// External dependencies
|
|
|