silkworm icon indicating copy to clipboard operation
silkworm copied to clipboard

CRoaring cmake warning: policy CMP0063 is not set

Open battlmonstr opened this issue 3 years ago • 0 comments

CMake on macOS using:

cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DGMP_INCLUDE_DIR=... -DGMP_LIBRARY=...

Produces a warning:

CMake Warning (dev) at third_party/CRoaring/src/CMakeLists.txt:40 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types.  Run "cmake --help-policy CMP0063" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "roaring" of type "STATIC_LIBRARY" has the following visibility
  properties set for C:

    C_VISIBILITY_PRESET

  For compatibility CMake is not honoring them for this target.
This warning is for project developers.  Use -Wno-dev to suppress it.

This warning is cured by adding:

cmake_policy(SET CMP0063 NEW)

to third_party/CRoaring/CMakeLists.txt

I couldn't find a corresponding issue upstream.

cmake version 3.23.2

battlmonstr avatar Jun 07 '22 15:06 battlmonstr