File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ set(HOG_INCLUDES
12
12
set (CMAKE_CXX_STANDARD 17 )
13
13
14
14
file (GLOB HOG_SOURCES "src/hog.cpp" )
15
- if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" )
15
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
16
+ add_library (fasthog SHARED ${HOG_SOURCES} )
17
+ else ()
16
18
add_library (hog_sse4 OBJECT src/magnitude_orientation.cpp )
17
19
set_property (TARGET hog_sse4 PROPERTY POSITION_INDEPENDENT_CODE ON )
18
20
target_compile_options (hog_sse4 PRIVATE -msse4 -DVEC_T=Vec2d )
@@ -29,8 +31,6 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
29
31
target_include_directories (hog_avx512 PRIVATE ${HOG_INCLUDES} )
30
32
31
33
add_library (fasthog SHARED ${HOG_SOURCES} $< TARGET_OBJECTS:hog_sse4> $< TARGET_OBJECTS:hog_avx2> $< TARGET_OBJECTS:hog_avx512> )
32
- else ()
33
- add_library (fasthog SHARED ${HOG_SOURCES} )
34
34
endif ()
35
35
36
36
target_include_directories (fasthog PUBLIC ${HOG_INCLUDES} )
You can’t perform that action at this time.
0 commit comments