htwaijry / npy4th

Numpy format for Torch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMP0042 introduced in CMake 3

lpuglia opened this issue · comments

commented

Hi,
the file ./cnpy/CMakeLists.txt has an error in the requirement

CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)

in fact, later it uses:

if(POLICY CMP0042)

which was introduced in CMake 3:
https://cmake.org/cmake/help/v3.0/policy/CMP0042.html

Thanks for catching this.. I will update the version requirement.

Status?