format: add cmake-format to pre-commit

This commit is contained in:
Henry Schreiner
2020-07-29 16:42:07 -04:00
committed by Henry Schreiner
parent 1651c32492
commit e2a96890e1
3 changed files with 76 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ endforeach()
set(testdir ${CMAKE_CURRENT_SOURCE_DIR})
foreach(target ${test_targets})
set(test_files ${PYBIND11_TEST_FILES})
if(NOT target STREQUAL "pybind11_tests")
if(NOT "${target}" STREQUAL "pybind11_tests")
set(test_files "")
endif()