Skip to content

Commit 03a4749

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3c32e9c commit 03a4749

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/test_cmake_build/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,14 @@ endif()
7171

7272
if(PYBIND11_INSTALL)
7373
add_custom_target(
74-
mock_install ${CMAKE_COMMAND} "-DCMAKE_INSTALL_PREFIX=${pybind11_BINARY_DIR}/mock_install"
75-
"-DBUILD_TYPE=" "$<$<CONFIG:DEBUG>:Debug>" "$<$<CONFIG:RELEASE>:Release>" -P "${pybind11_BINARY_DIR}/cmake_install.cmake")
74+
mock_install
75+
${CMAKE_COMMAND}
76+
"-DCMAKE_INSTALL_PREFIX=${pybind11_BINARY_DIR}/mock_install"
77+
"-DBUILD_TYPE="
78+
"$<$<CONFIG:DEBUG>:Debug>"
79+
"$<$<CONFIG:RELEASE>:Release>"
80+
-P
81+
"${pybind11_BINARY_DIR}/cmake_install.cmake")
7682

7783
pybind11_add_build_test(installed_function INSTALL)
7884
pybind11_add_build_test(installed_target INSTALL)

0 commit comments

Comments
 (0)