Skip to content

Commit

Permalink
fix compile error without openmp on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
xzou999 committed Mar 11, 2020
1 parent 78955fa commit 0be338d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ IF(EXISTS "${CMAKE_SOURCE_DIR}/.git")
)
endif()
SET(BUILD_VERSION ${GIT_VERSION})
IF(NOT BUILD_VERSION)
SET(BUILD_VERSION "v0.0.1")
ENDIF()
ENDIF()
ENDIF()
message("BUILD_VERSION:${BUILD_VERSION}")
Expand Down
5 changes: 4 additions & 1 deletion example/benchmark.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <omp.h>
#include "facedetectcnn.h"

#ifdef _OPENMP
#include <omp.h>
#endif

using namespace cv;
using namespace std;

Expand Down

0 comments on commit 0be338d

Please sign in to comment.