boostorg / histogram

Fast multi-dimensional generalized histogram with convenient interface for C++14
Boost Software License 1.0
313 stars 74 forks source link

tests: explicit extensions required in modern CMake #330

Closed henryiii closed 2 years ago

henryiii commented 2 years ago

This produces warnings (and would produce errors if the upper limit was changed to 3.21 from the current 3.16). The correct fix is to be explicit.

Example warning:

CMake Warning (dev) at benchmark/CMakeLists.txt:27 (add_executable):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /Users/henryschreiner/git/software/histogram/benchmark/axis_size.cpp
Call Stack (most recent call first):
  benchmark/CMakeLists.txt:34 (add_benchmark)
This warning is for project developers.  Use -Wno-dev to suppress it.
HDembinski commented 2 years ago

Thanks for the patch!