Skip to content

Commit 9615bf6

Browse files
style: pre-commit fixes
1 parent 8c53564 commit 9615bf6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,16 @@ if(PYBIND11_INSTALL)
278278

279279
# pkg-config support
280280
if(NOT prefix_for_pc_file)
281-
if (IS_ABSOLUTE "${CMAKE_INSTALL_DATAROOTDIR}")
281+
if(IS_ABSOLUTE "${CMAKE_INSTALL_DATAROOTDIR}")
282282
set(prefix_for_pc_file "${CMAKE_INSTALL_PREFIX}")
283-
else ()
283+
else()
284284
set(pc_datarootdir "${CMAKE_INSTALL_DATAROOTDIR}")
285285
set(prefix_for_pc_file "\${pcfiledir}/..")
286-
while (pc_datarootdir)
286+
while(pc_datarootdir)
287287
get_filename_component(pc_datarootdir "${pc_datarootdir}" DIRECTORY)
288288
string(APPEND prefix_for_pc_file "/..")
289-
endwhile ()
290-
endif ()
289+
endwhile()
290+
endif()
291291
endif()
292292
join_paths(includedir_for_pc_file "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
293293
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/tools/pybind11.pc.in"

0 commit comments

Comments
 (0)