htwaijry / npy4th

Numpy format for Torch
Other
68 stars 8 forks source link

Update CMakeLists.txt #14

Closed willfrey closed 7 years ago

willfrey commented 7 years ago

Building from source was failing for me on Ubuntu 14.04 with CMake 2.8.12.2 (version from apt-get) because this version of CMake did not have CMP0042, which was introduced in CMake 3.0.

Adding the conditional fixed the issue for me.

Solution was inspired by https://github.com/slembcke/Chipmunk2D/issues/112.