mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
cmake: use INCLUDE_DIRECTORIES prop to specify local header dirs
To use more modern cmake, and make it somewhat more obvious where these
header directories should apply.
Also move setting the directory property _before_ defining targets,
to make them inherit this directory property.
Ref: https://cmake.org/cmake/help/latest/command/include_directories.html
Ref: https://cmake.org/cmake/help/latest/prop_dir/INCLUDE_DIRECTORIES.html
Follow-up to 45f7cb7695 #16238
Closes #16993
This commit is contained in:
parent
625f2c1644
commit
304b01b8cf
3 changed files with 10 additions and 9 deletions
|
|
@ -190,7 +190,7 @@ else()
|
|||
set(CURL_OS "\"${CMAKE_SYSTEM_NAME}\"")
|
||||
endif()
|
||||
|
||||
include_directories("${PROJECT_SOURCE_DIR}/include")
|
||||
set_property(DIRECTORY APPEND PROPERTY INCLUDE_DIRECTORIES "${PROJECT_SOURCE_DIR}/include")
|
||||
|
||||
if(NOT DEFINED CMAKE_UNITY_BUILD_BATCH_SIZE)
|
||||
set(CMAKE_UNITY_BUILD_BATCH_SIZE 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue