gnue / NEWT0

NewtonScript
http://gnue.github.io/NEWT0
34 stars 13 forks source link

CMake Warning (dev) at NEWT0/CMakeLists.txt:74 (add_library) #26

Open digdog opened 2 years ago

digdog commented 2 years ago

I was building tntk and saw this CMake Warning in NEWT/0 about Policy CMP0115 is not set.

tntk % cmake -S . -B build
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found BISON: /usr/bin/bison (found version "2.3") 
-- Configuring done
CMake Warning (dev) at NEWT0/CMakeLists.txt:74 (add_library):
  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/digdog/Repository/GitHub/tntk/NEWT0/src/newt_core/incs/NewtConf.h.in
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/digdog/Repository/GitHub/tntk/build
MatthiasWM commented 2 years ago

Yeah, the warning comes with newer versions of CMake. We should probably update the CMakeLists.txt file. For a user, this warning can be ignored.