luoyetx / mini-caffe

Minimal runtime core of Caffe, Forward only, GPU support and Memory efficiency.
BSD 3-Clause "New" or "Revised" License
374 stars 151 forks source link

add debug POSTFIX `d` #62

Open GarrickLin opened 6 years ago

GarrickLin commented 6 years ago

I found that I cannot use release version of caffe.dll and caffe.lib when I try to debug my project. It is a good idea to set postfix d to distinguish them just like opencv does.

set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Set debug library postfix")
luoyetx commented 6 years ago

@GarrickLin would you like to send a pr?

luoyetx commented 6 years ago

@GarrickLin you can link caffe.lib (release version) for both debug and release in your project. Thus, you need to compile release version first.

GarrickLin commented 6 years ago

I can link caffe.lib successfully but cause an error (something like caffe parser errors) during runtime.