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() 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.