From 1e56403bd04a68da7fabd1a3dfd4b53e0ad6f901 Mon Sep 17 00:00:00 2001 From: KangLin Date: Wed, 25 Mar 2020 07:26:39 +0800 Subject: [PATCH 1/2] FIX: issues #222 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4bcd98714..81fca2dfe 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ It should be compiled at any platform which support C/C++. Some tips: + * Please add facedetection_export.h file in the position of your copy facedetectcnn.h files,add #define FACEDETECTION_EXPORT to the facedetection_export.h file. See: [issues #222](https://github.com/ShiqiYu/libfacedetection/issues/222) * Please add -O3 to turn on optimizations when you compile the source code using g++. * Please choose 'Maximize Speed/-O2' when you compile the source code using Microsoft Visual Studio. * You can enable OpenMP to speedup. But the best solution is to call the detection function in different threads. From daf35e05d7182f9db5a97619c986beb939c38e08 Mon Sep 17 00:00:00 2001 From: KangLin Date: Wed, 25 Mar 2020 09:05:16 +0800 Subject: [PATCH 2/2] Modify CMakeLists.txt --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d97124b18..fedf21606 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,9 +43,8 @@ IF(EXISTS "${CMAKE_SOURCE_DIR}/.git") OUTPUT_VARIABLE GIT_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) endif() - SET(BUILD_VERSION ${GIT_VERSION}) - IF(NOT BUILD_VERSION) - SET(BUILD_VERSION "v0.0.1") + IF(NOT GIT_VERSION) + SET(BUILD_VERSION ${GIT_VERSION}) ENDIF() ENDIF() ENDIF()