zdevito / ATen

ATen: A TENsor library for C++11
683 stars 125 forks source link

Unknown CMake command "EXCLUDE". #223

Closed YunYang1994 closed 6 years ago

YunYang1994 commented 6 years ago

-- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at src/ATen/core/CMakeLists.txt:7 (EXCLUDE): Unknown CMake command "EXCLUDE".

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.5)

should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred! See also "/home/yang/ATen/aten/build/CMakeFiles/CMakeOutput.log". make: *** No rule to make target 'install'. Stop.

futscdav commented 6 years ago

So what was you solution to this?

houssamn commented 6 years ago

just build the whole pytorch project and install libtorch. building ATen alone didn't work for me