Skip to content

Commit

Permalink
use CMAKE_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
gglin001 committed Jul 14, 2022
1 parent d55837e commit d689d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/external/gflags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ else()
set(GFLAGS_LIBRARIES
"${GFLAGS_INSTALL_DIR}/lib/libgflags.a"
CACHE FILEPATH "GFLAGS_LIBRARIES" FORCE)
set(BUILD_COMMAND ${CMAKE_MAKE_PROGRAM})
set(INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install)
set(BUILD_COMMAND ${CMAKE_COMMAND} --build .)
set(INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install)
endif()

include_directories(${GFLAGS_INCLUDE_DIR})
Expand Down

0 comments on commit d689d16

Please sign in to comment.