Sfoglia il codice sorgente

Merge pull request #59 from risoflora/fix-cmake-warnings

Fix CMake warnings
Silvio Clécio 1 anno fa
parent
commit
cb93cd6486
4 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 2 0
      cmake/SgMHD.cmake
  2. 2 0
      cmake/SgPCRE2.cmake
  3. 2 0
      cmake/SgZLib.cmake
  4. 1 1
      docs/BUILD.md

+ 2 - 0
cmake/SgMHD.cmake

@@ -42,6 +42,8 @@ if(__SG_MHD_INCLUDED)
 endif()
 set(__SG_MHD_INCLUDED ON)
 
+cmake_policy(SET CMP0135 NEW)
+
 set(MHD_NAME "libmicrohttpd")
 set(MHD_VER "0.9.77")
 set(MHD_FULL_NAME "${MHD_NAME}-${MHD_VER}")

+ 2 - 0
cmake/SgPCRE2.cmake

@@ -45,6 +45,8 @@ set(__SG_PCRE2_INCLUDED ON)
 
 option(PCRE2_JIT_SUPPORT "Enable JIT support" ON)
 
+cmake_policy(SET CMP0135 NEW)
+
 set(PCRE2_NAME "pcre2")
 set(PCRE2_VER "10.42")
 set(PCRE2_FULL_NAME "${PCRE2_NAME}-${PCRE2_VER}")

+ 2 - 0
cmake/SgZLib.cmake

@@ -42,6 +42,8 @@ if(__SG_ZLIB_INCLUDED)
 endif()
 set(__SG_ZLIB_INCLUDED ON)
 
+cmake_policy(SET CMP0135 NEW)
+
 set(ZLIB_NAME "zlib")
 set(ZLIB_VER "1.3.1")
 set(ZLIB_FULL_NAME "${ZLIB_NAME}-${ZLIB_VER}")

+ 1 - 1
docs/BUILD.md

@@ -158,7 +158,7 @@ Scanning dependencies of target sagui
 [100%] Built target sagui
 ```
 
-## Building the shared library (.so/.dll)
+## Building the shared library (.so/.dylib/.dll)
 
 Supposing the shared library will be built using the `clang` front-end, set the
 variable `CMAKE_C_COMPILER` to `clang`: