[DO-983][DO-985] add tiff and zstd packages (!14)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/14
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
diff --git a/a/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake b/b/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
|
||||
index e23b9d6..8d04458 100644
|
||||
--- a/a/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
|
||||
+++ b/b/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
|
||||
@@ -22,10 +22,12 @@ endfunction()
|
||||
|
||||
macro(ADD_ZSTD_COMPILATION_FLAGS)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" OR MINGW) #Not only UNIX but also WIN32 for MinGW
|
||||
- #Set c++11 by default
|
||||
- EnableCompilerFlag("-std=c++11" false true)
|
||||
- #Set c99 by default
|
||||
- EnableCompilerFlag("-std=c99" true false)
|
||||
+ # It's possible to select the exact standard used for compilation.
|
||||
+ # It's not necessary, but can be employed for specific purposes.
|
||||
+ # Note that zstd source code is compatible with both C++98 and above
|
||||
+ # and C-gnu90 (c90 + long long + variadic macros ) and above
|
||||
+ # EnableCompilerFlag("-std=c++11" false true) # Set C++ compilation to c++11 standard
|
||||
+ # EnableCompilerFlag("-std=c99" true false) # Set C compiation to c99 standard
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND MSVC)
|
||||
# clang-cl normally maps -Wall to -Weverything.
|
||||
EnableCompilerFlag("/clang:-Wall" true true)
|
||||
Reference in New Issue
Block a user