Commit a6ac55ad authored by Davis King's avatar Davis King

Add error message for users trying to build dlib as a standalone dll in visual studio.

parent fe10f254
......@@ -82,6 +82,11 @@ if (DLIB_IN_PROJECT_BUILD)
# Tell cmake to build dlib as a static library
set(BUILD_SHARED_LIBS false)
elseif(BUILD_SHARED_LIBS)
if (MSVC)
message(FATAL_ERROR "Building dlib as a standalone dll is not supported when using Visual Studio. You are highly encouraged to use static linking instead. See https://github.com/davisking/dlib/issues/1483 for a discussion.")
endif()
endif()
......
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