CMake Error: Could not create named generator Visual
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.
Try surrounding %CMAKE_GENERATOR% with double quotes like so "%CMAKE_GENERATOR%". Please note that installation questions should be asked on the mailing list.