Skip to content

Commit 5f549fc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a78d02d commit 5f549fc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

config/AddGoogletest.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS
3737

3838
if(NOT GTest_FOUND)
3939
add_subdirectory(
40-
${CMAKE_SOURCE_DIR}/ThirdParty/googletest ${CMAKE_BINARY_DIR}/ThirdParty/googletest
41-
EXCLUDE_FROM_ALL
40+
${CMAKE_SOURCE_DIR}/ThirdParty/googletest
41+
${CMAKE_BINARY_DIR}/ThirdParty/googletest EXCLUDE_FROM_ALL
4242
)
4343

4444
if(NOT MSVC)
45-
target_compile_options(gtest PUBLIC "-Wno-undef" "-Wno-c++17-attribute-extensions")
46-
target_compile_options(gmock PUBLIC "-Wno-undef" "-Wno-c++17-attribute-extensions")
45+
target_compile_options(
46+
gtest PUBLIC "-Wno-undef" "-Wno-c++17-attribute-extensions"
47+
)
48+
target_compile_options(
49+
gmock PUBLIC "-Wno-undef" "-Wno-c++17-attribute-extensions"
50+
)
4751
target_compile_options(
4852
gtest_main PUBLIC "-Wno-undef" "-Wno-c++17-attribute-extensions"
4953
)

0 commit comments

Comments
 (0)