Skip to content

Commit

Permalink
Log OpenCV version in built in init.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
btsimonh committed Nov 14, 2017
1 parent fa663d4 commit e943fe7
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 e943fe7

Please sign in to comment.