forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[azure-iot-sdk-c] LTS release 2022-01-21 (microsoft#22696)
* [azure-iot-sdk-c] LTS release 2022-01-21 * bot instructions * bot 2 instructions * Update patches per cmake changes * bot instructions fix * update version * bot instructions Co-authored-by: Mollie Munoz <[email protected]> Co-authored-by: Jonliu1993 <[email protected]>
- Loading branch information
1 parent
f1dfd65
commit c76e5f0
Showing
27 changed files
with
174 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index deeaae7d..c0c84275 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -675,7 +675,7 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR) | ||
set(CMAKE_INSTALL_LIBDIR "lib") | ||
endif() | ||
|
||
-set(package_location "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") | ||
+set(package_location "cmake") | ||
|
||
if(${build_as_dynamic}) | ||
set(targets aziotsharedutil aziotsharedutil_dll) | ||
@@ -689,7 +689,7 @@ install (TARGETS ${targets} EXPORT aziotsharedutilTargets | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azureiot | ||
) | ||
-install (FILES ${source_h_files} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azure_c_shared_utility) | ||
+install (FILES ${source_h_files} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azureiot/azure_c_shared_utility) | ||
install (FILES ${micromock_h_files_full_path} ${INSTALL_H_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/azureiot) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 17 additions & 4 deletions
21
ports/azure-iot-sdk-c/fix-cmake.patch → ...zure-iot-sdk-c/fix-install-location.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b72bd41ed..e916728a8 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -34,14 +34,11 @@ | ||
if (MSVC) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4232") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /wd4232") | ||
# Make warning as error | ||
- add_definitions(/WX) | ||
else() | ||
# Make warning as error | ||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") | ||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") | ||
@@ -123,11 +123,8 @@ if (${warnings_as_errors}) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4232") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /wd4232") | ||
# Make warning as error | ||
- add_definitions(/WX) | ||
else() | ||
# Make warning as error | ||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") | ||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") | ||
endif() | ||
endif() | ||
|
||
IF(WIN32) | ||
# windows needs this define | ||
add_definitions(-D_CRT_SECURE_NO_WARNINGS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index c63adc0..9ba6007 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -145,8 +145,8 @@ endif() | ||
# Set CMAKE_INSTALL_LIBDIR if not defined | ||
include(GNUInstallDirs) | ||
|
||
-# Install umqtt | ||
-set(package_location "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") | ||
+# Install uhttp | ||
+set(package_location "cmake") | ||
|
||
if(NOT DEFINED CMAKE_INSTALL_LIBDIR) | ||
set(CMAKE_INSTALL_LIBDIR "lib") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 0dcf186..1d9bc8a 100755 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -155,7 +155,7 @@ endif () | ||
include(GNUInstallDirs) | ||
|
||
# Install umqtt | ||
-set(package_location "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") | ||
+set(package_location "cmake") | ||
|
||
if(NOT DEFINED CMAKE_INSTALL_LIBDIR) | ||
set(CMAKE_INSTALL_LIBDIR "lib") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.