Skip to content

Commit

Permalink
Merge pull request #64 from risoflora/fix-cmake-warnings
Browse files Browse the repository at this point in the history
Fix CMake warnings
  • Loading branch information
silvioprog authored Feb 12, 2024
2 parents 0dc2509 + bac4c4f commit d970d7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmake/SgMHD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ if(__SG_MHD_INCLUDED)
endif()
set(__SG_MHD_INCLUDED ON)

cmake_policy(SET CMP0135 NEW)
if(CMAKE_VERSION VERSION_GREATER "3.23")
cmake_policy(SET CMP0135 NEW)
endif()

set(MHD_NAME "libmicrohttpd")
set(MHD_VER "0.9.77")
Expand Down
4 changes: 3 additions & 1 deletion cmake/SgPCRE2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ set(__SG_PCRE2_INCLUDED ON)

option(PCRE2_JIT_SUPPORT "Enable JIT support" ON)

cmake_policy(SET CMP0135 NEW)
if(CMAKE_VERSION VERSION_GREATER "3.23")
cmake_policy(SET CMP0135 NEW)
endif()

set(PCRE2_NAME "pcre2")
set(PCRE2_VER "10.42")
Expand Down
4 changes: 3 additions & 1 deletion cmake/SgZLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ if(__SG_ZLIB_INCLUDED)
endif()
set(__SG_ZLIB_INCLUDED ON)

cmake_policy(SET CMP0135 NEW)
if(CMAKE_VERSION VERSION_GREATER "3.23")
cmake_policy(SET CMP0135 NEW)
endif()

set(ZLIB_NAME "zlib")
set(ZLIB_VER "1.3.1")
Expand Down

0 comments on commit d970d7e

Please sign in to comment.