Skip to content

Commit

Permalink
Add SYSTEM property to all dependencies
Browse files Browse the repository at this point in the history
Add SYSTEM property to all `add_subdirectory` commands that add
external dependencies
  • Loading branch information
p-senichenkov committed Jan 6, 2025
1 parent 240016d commit 8708b84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ if (PYTHON STREQUAL INSTALL)
# Relies on undocumented behaviour. EXCLUDE_FROM_ALL is used to prevent install commands
# inside the easyloggingpp CMakeLists from executing and subsequently failing with a permission error,
# making it impossible to install the Python package as a normal user.
add_subdirectory("lib/easyloggingpp" EXCLUDE_FROM_ALL)
add_subdirectory("lib/easyloggingpp" EXCLUDE_FROM_ALL SYSTEM)
else ()
add_subdirectory("lib/easyloggingpp")
add_subdirectory("lib/easyloggingpp" SYSTEM)
endif ()
set( CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_COPY} )

Expand All @@ -199,7 +199,7 @@ endif()
add_subdirectory("cfg")

if (PYTHON)
add_subdirectory("lib/pybind11")
add_subdirectory("lib/pybind11" SYSTEM)
add_subdirectory("src/python_bindings")
endif()

Expand Down

0 comments on commit 8708b84

Please sign in to comment.