removed unused param from cmake macro (#1847)

Signed-off-by: XiaotaoGuo <xtguo1995@outlook.com>
master
XiaotaoGuo 2022-07-23 21:10:49 +08:00 committed by GitHub
parent ca526de1f8
commit 1173e80c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ macro(_parse_arguments ARGS)
"${OPTIONS}" "${ONE_VALUE_ARG}" "${MULTI_VALUE_ARGS}" ${ARGS}) "${OPTIONS}" "${ONE_VALUE_ARG}" "${MULTI_VALUE_ARGS}" ${ARGS})
endmacro(_parse_arguments) endmacro(_parse_arguments)
macro(_common_compile_stuff VISIBILITY) macro(_common_compile_stuff)
set(TARGET_COMPILE_FLAGS "${TARGET_COMPILE_FLAGS} ${GOOG_CXX_FLAGS}") set(TARGET_COMPILE_FLAGS "${TARGET_COMPILE_FLAGS} ${GOOG_CXX_FLAGS}")
set_target_properties(${NAME} PROPERTIES set_target_properties(${NAME} PROPERTIES
@ -34,7 +34,7 @@ endmacro(_common_compile_stuff)
function(google_test NAME ARG_SRC) function(google_test NAME ARG_SRC)
add_executable(${NAME} ${ARG_SRC}) add_executable(${NAME} ${ARG_SRC})
_common_compile_stuff("PRIVATE") _common_compile_stuff()
# Make sure that gmock always includes the correct gtest/gtest.h. # Make sure that gmock always includes the correct gtest/gtest.h.
target_include_directories("${NAME}" SYSTEM PRIVATE target_include_directories("${NAME}" SYSTEM PRIVATE
@ -49,7 +49,7 @@ function(google_binary NAME)
add_executable(${NAME} ${ARG_SRCS}) add_executable(${NAME} ${ARG_SRCS})
_common_compile_stuff("PRIVATE") _common_compile_stuff()
install(TARGETS "${NAME}" RUNTIME DESTINATION bin) install(TARGETS "${NAME}" RUNTIME DESTINATION bin)
endfunction() endfunction()