[build] Apply a formatter for CMake files (#5973)

This commit is contained in:
Gold856
2023-11-30 19:52:21 -05:00
committed by GitHub
parent 9b8011aa67
commit 4fcf0b25a1
37 changed files with 1496 additions and 896 deletions

View File

@@ -4,10 +4,10 @@ macro(wpilib_add_test name srcdir)
file(GLOB_RECURSE test_src ${srcdir}/*.cpp)
add_executable(${name}_test ${test_src})
wpilib_target_warnings(${name}_test)
if (BUILD_SHARED_LIBS)
if(BUILD_SHARED_LIBS)
target_compile_definitions(${name}_test PRIVATE -DGTEST_LINKED_AS_SHARED_LIBRARY)
endif()
if (MSVC)
if(MSVC)
target_compile_options(${name}_test PRIVATE /wd4101 /wd4251)
endif()
add_test(NAME ${name} COMMAND ${name}_test)