Commit 71b303d8 authored by Davis King's avatar Davis King
Browse files

Improve the error a user gets when trying to build the pyhton extention on...

Improve the error a user gets when trying to build the pyhton extention on windows but they didn't install visual C++.
parent b9f4da55
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
if (WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
message(FATAL_ERROR "\n"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
"You must use Visual Studio to build a python extension on windows. If you "
"are getting this error it means you have not installed Visual C++. Note that "
"there are many flavors of Visual Studio, like Visual Studio for C\# development. "
"You need to install Visual Studio for C++. \n"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n")
endif()
project(dlib_python_bindings)
# Pybind11's cmake scripts enable link time optimization by default. However,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment