mini-caffe icon indicating copy to clipboard operation
mini-caffe copied to clipboard

add debug POSTFIX `d`

Open GarrickLin opened this issue 7 years ago • 3 comments
trafficstars

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")

GarrickLin avatar Feb 10 '18 16:02 GarrickLin

@GarrickLin would you like to send a pr?

luoyetx avatar Feb 11 '18 01:02 luoyetx

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

luoyetx avatar Feb 11 '18 01:02 luoyetx

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

GarrickLin avatar Feb 11 '18 06:02 GarrickLin