Skip to content

Commit

Permalink
Merge pull request #590 from btsimonh/logopencvversion
Browse files Browse the repository at this point in the history
Log OpenCV version in built in init.cc
  • Loading branch information
btsimonh authored Nov 14, 2017
2 parents 1a5947c + e943fe7 commit a1d7a22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#include "LDAWrap.h"
#include "Histogram.h"

#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
#pragma message ( "Building with OpenCV" STR(CV_MAJOR_VERSION) "." STR(CV_MINOR_VERSION) )

extern "C" void init(Local<Object> target) {
Nan::HandleScope scope;
OpenCV::Init(target);
Expand Down

0 comments on commit a1d7a22

Please sign in to comment.