Skip to content

Commit

Permalink
Merge pull request #38 from JDAI-CV/update_gtest_cmake
Browse files Browse the repository at this point in the history
Update gtest.cmake
  • Loading branch information
daquexian authored Jul 1, 2019
2 parents c12ff51 + ecf04a3 commit b35d345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ if (BNN_BUILD_MAIN_LIB)
if (${BNN_BUILD_TEST})
include(cmake/gtest.cmake)
configure_gtest()
add_subdirectory(third_party/googletest)
endif()

add_subdirectory(dabnn)
Expand Down
3 changes: 2 additions & 1 deletion cmake/gtest.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright 2019 JD.com Inc. JD AI

macro(configure_gtest)
message(STATUS "Configureing gtest...")
message(STATUS "Configuring gtest...")
option(BUILD_GMOCK "Builds the googlemock subproject" OFF)
option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" OFF)
add_subdirectory(third_party/googletest)
endmacro()

0 comments on commit b35d345

Please sign in to comment.