Skip to content

Commit

Permalink
Merge pull request #59 from risoflora/fix-cmake-warnings
Browse files Browse the repository at this point in the history
Fix CMake warnings
  • Loading branch information
silvioprog committed Jan 27, 2024
2 parents 1074471 + 8e89871 commit cb93cd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmake/SgMHD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 2 additions & 0 deletions cmake/SgPCRE2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 2 additions & 0 deletions cmake/SgZLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down

0 comments on commit cb93cd6

Please sign in to comment.