willyd / caffe-builder

CMake build scripts to automate building the Caffe library and its dependencies.
BSD 2-Clause "Simplified" License
186 stars 116 forks source link

CMake Error: Could not create named generator Visual #31

Open HCIHKUST opened 7 years ago

HCIHKUST commented 7 years ago

I compile caffe windows branch. My environment is win10, cmake 3.7, vs2015, cuda8.0, no ninjia.

The compile script is:

set CMAKE_GENERATOR=Visual Studio 14 2015 Win64 set CMAKE_CONFIGURATION=Release mkdir build cd build cmake -G%CMAKE_GENERATOR% -DBLAS=Open -DCMAKE_BUILD_TYPE=%CMAKE_CONFIGURATION% -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=%CAFFE_ROOT%\install -C %CAFFE_DEPENDENCIES%\caffe-builder-config.cmake ..\ cmake --build . --config %CMAKE_CONFIGURATION% cmake --build . --config %CMAKE_CONFIGURATION% --target install

But it reports the error as shown in the title.

Could you help? Thanks.

willyd commented 7 years ago

Try surrounding %CMAKE_GENERATOR% with double quotes like so "%CMAKE_GENERATOR%". Please note that installation questions should be asked on the mailing list.