Skip to content

Commit

Permalink
Avoid name conflict in glog.cmake. BUILD_TESTING is conflicted with e…
Browse files Browse the repository at this point in the history
…igen in onnxruntime
  • Loading branch information
daquexian committed May 23, 2019
1 parent 4f12fe1 commit 9b428af
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmake/glog.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
macro(configure_glog)
message(STATUS "Configureing glog...")
option(BUILD_TESTING "" OFF)
option(WITH_GFLAGS "" OFF)

set(TEMP_BUILD_TESTING ${BUILD_TESTING})
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
set(TEMP_WITH_GFLAGS ${WITH_GFLAGS})
set(WITH_GFLAGS OFF CACHE BOOL "" FORCE)

add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/glog)

set(BUILD_TESTING ${TEMP_BUILD_TESTING} CACHE BOOL "" FORCE)
set(WITH_GFLAGS ${TEMP_WITH_GFLAGS} CACHE BOOL "" FORCE)
endmacro()

0 comments on commit 9b428af

Please sign in to comment.