diff --git a/CMakeLists.txt b/CMakeLists.txt index 2143518..7ebe021 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,15 @@ set(run_e2e_tests OFF) set(run_unittests OFF) set(skip_samples ON) +if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + set(MACOSX TRUE) +endif() + if(NOT ${use_installed_dependencies}) + if(MACOSX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-strict-prototypes") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-strict-prototypes") + endif() if ((NOT TARGET azure_macro_utils_c) AND (EXISTS ${CMAKE_CURRENT_LIST_DIR}/deps/azure-macro-utils-c/CMakeLists.txt)) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/deps/azure-macro-utils-c) endif() diff --git a/deps/c-utility b/deps/c-utility index 0e12053..55bb392 160000 --- a/deps/c-utility +++ b/deps/c-utility @@ -1 +1 @@ -Subproject commit 0e120535898c4b00bb2ec6f3c4c7f59ee5e8ead8 +Subproject commit 55bb392cd220e6b369336a7bd42e2a2a47507b2b