From e943fe727ba7ef2c33cb16c36a5cbbda77b761c3 Mon Sep 17 00:00:00 2001 From: Simon Hailes Date: Tue, 14 Nov 2017 13:21:13 +0000 Subject: [PATCH] Log OpenCV version in built in init.cc --- src/init.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/init.cc b/src/init.cc index fdd58c6d..5b1d78af 100755 --- a/src/init.cc +++ b/src/init.cc @@ -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 target) { Nan::HandleScope scope; OpenCV::Init(target);