File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1809,6 +1809,8 @@ endmacro()
18091809
18101810macro (build_glog )
18111811 message (STATUS "Building glog from source" )
1812+ find_library (LIBUNWIND_LIBRARY NAMES unwind )
1813+
18121814 set (GLOG_PREFIX "${CMAKE_CURRENT_BINARY_DIR } /glog_ep-install" )
18131815 set (GLOG_INCLUDE_DIR "${GLOG_PREFIX} /include" )
18141816 if (${UPPERCASE_BUILD_TYPE} STREQUAL "DEBUG" )
@@ -1831,6 +1833,9 @@ macro(build_glog)
18311833 -DWITH_GTEST=OFF
18321834 -DCMAKE_CXX_FLAGS=${GLOG_CMAKE_CXX_FLAGS}
18331835 -DCMAKE_C_FLAGS=${GLOG_CMAKE_C_FLAGS} )
1836+ if (NOT LIBUNWIND_LIBRARY)
1837+ list (APPEND GLOG_CMAKE_ARGS -DWITH_UNWIND=none)
1838+ endif ()
18341839
18351840 externalproject_add (glog_ep
18361841 URL ${GLOG_SOURCE_URL}
@@ -1848,7 +1853,6 @@ macro(build_glog)
18481853
18491854 add_dependencies (glog glog_ep )
18501855
1851- find_library (LIBUNWIND_LIBRARY NAMES unwind )
18521856 if (LIBUNWIND_LIBRARY)
18531857 target_link_libraries (glog INTERFACE ${LIBUNWIND_LIBRARY} )
18541858 endif ()
You can’t perform that action at this time.
0 commit comments