Browse Source

fix(dnn/x86): fix cmake error for build x86 gtest

GitOrigin-RevId: 7613190733
release-0.6
Megvii Engine Team 5 years ago
parent
commit
5fb07c9964
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dnn/test/CMakeLists.txt

+ 1
- 1
dnn/test/CMakeLists.txt View File

@@ -11,7 +11,7 @@ if(NOT ${MGE_ARCH} STREQUAL "naive")
list(APPEND SOURCES ${SOURCES_}) list(APPEND SOURCES ${SOURCES_})
if(${MGE_ARCH} STREQUAL "fallback") if(${MGE_ARCH} STREQUAL "fallback")
message(WARNING "build only with fallback") message(WARNING "build only with fallback")
elseif(${MGE_ARCH} STREQUAL "x86")
elseif(${MGE_ARCH} STREQUAL "x86_64" OR ${MGE_ARCH} STREQUAL "i386")
file(GLOB_RECURSE SOURCES_ x86/*.cpp) file(GLOB_RECURSE SOURCES_ x86/*.cpp)
list(APPEND SOURCES ${SOURCES_}) list(APPEND SOURCES ${SOURCES_})
endif() endif()


Loading…
Cancel
Save