Skip to content

Commit 9b428af

Browse files
committed
Avoid name conflict in glog.cmake. BUILD_TESTING is conflicted with eigen in onnxruntime
1 parent 4f12fe1 commit 9b428af

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

cmake/glog.cmake

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
macro(configure_glog)
22
message(STATUS "Configureing glog...")
3-
option(BUILD_TESTING "" OFF)
4-
option(WITH_GFLAGS "" OFF)
3+
4+
set(TEMP_BUILD_TESTING ${BUILD_TESTING})
5+
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
6+
set(TEMP_WITH_GFLAGS ${WITH_GFLAGS})
7+
set(WITH_GFLAGS OFF CACHE BOOL "" FORCE)
8+
59
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/glog)
10+
11+
set(BUILD_TESTING ${TEMP_BUILD_TESTING} CACHE BOOL "" FORCE)
12+
set(WITH_GFLAGS ${TEMP_WITH_GFLAGS} CACHE BOOL "" FORCE)
613
endmacro()

0 commit comments

Comments
 (0)