diff options
| author | Peter Goodman <peter.goodman@gmail.com> | 2018-12-19 14:53:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-19 14:53:21 -0500 |
| commit | 222c629af4bdf4739ab0a50c375aa2875b83641f (patch) | |
| tree | 6115ccf07a745c6489da4e6393a68b7c7ab1dcb0 | |
| parent | d40eb181742082f25c1de6a829552174ae0350d7 (diff) | |
| download | vcpkg-222c629af4bdf4739ab0a50c375aa2875b83641f.tar.gz vcpkg-222c629af4bdf4739ab0a50c375aa2875b83641f.zip | |
Change to 0/1 instead of OFF/ON
On newer CMake's, the following errors are reported:
```
CMake Warning (dev) at .... /vcpkg/installed/x64-osx/share/c-ares/c-ares-config.cmake:32 (if):
if given arguments:
"ON"
An argument named "ON" appears in a conditional statement. Policy CMP0012
is not set: if() recognizes numbers and boolean constants. Run "cmake
--help-policy CMP0012" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
```
Which corresponds to the following configured code:
```
if(ON)
set(c-ares_STATIC_LIBRARY c-ares::cares_static)
endif()
```
| -rw-r--r-- | ports/c-ares/portfile.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/c-ares/portfile.cmake b/ports/c-ares/portfile.cmake index bf704304e..999c3553e 100644 --- a/ports/c-ares/portfile.cmake +++ b/ports/c-ares/portfile.cmake @@ -13,11 +13,11 @@ vcpkg_from_github( ) if(VCPKG_LIBRARY_LINKAGE STREQUAL static) - set(CARES_STATIC ON) - set(CARES_SHARED OFF) + set(CARES_STATIC 1) + set(CARES_SHARED 0) else() - set(CARES_STATIC OFF) - set(CARES_SHARED ON) + set(CARES_STATIC 0) + set(CARES_SHARED 1) endif() vcpkg_configure_cmake( |
