Skip to content

Commit 106838c

Browse files
committed
update CMakeLists.txt for face detection and alignment
1 parent 0f73c09 commit 106838c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

FaceAlignment/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ option(BUILD_EXAMPLES "Set to ON to build examples" ON)
1111
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
1212
message(STATUS "C++11 support has been enabled by default.")
1313

14+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
1415

1516
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")
1617

FaceDetection/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ option(BUILD_EXAMPLES "Set to ON to build examples" ON)
77
option(USE_OPENMP "Set to ON to build use openmp" ON)
88
option(USE_SSE "Set to ON to build use SSE" ON)
99

10+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
11+
1012
# Use C++11
1113
set(CMAKE_CXX_STANDARD 11)
1214
set(CMAKE_CXX_STANDARD_REQUIRED ON)

0 commit comments

Comments
 (0)