diff options
author | Brad King <brad.king@kitware.com> | 2023-01-12 14:21:27 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-12 14:21:37 (GMT) |
commit | d696b9dbcc5e3957f9b993d0d92580c38adb9820 (patch) | |
tree | a735561e8f04de831dacb38f266a90c79c50c49d /Modules | |
parent | f3a7eba1352590b55cca38f6a5864df83b45e33d (diff) | |
parent | 6683c20f22d38c654c5339f6b520bb1bd9b391e1 (diff) | |
download | CMake-d696b9dbcc5e3957f9b993d0d92580c38adb9820.zip CMake-d696b9dbcc5e3957f9b993d0d92580c38adb9820.tar.gz CMake-d696b9dbcc5e3957f9b993d0d92580c38adb9820.tar.bz2 |
Merge topic 'findmatlab_system_include'
6683c20f22 FindMatlab: Add SYSTEM include flag for matlab_add_mex
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8039
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindMatlab.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake index 07a9adf..fe8f198 100644 --- a/Modules/FindMatlab.cmake +++ b/Modules/FindMatlab.cmake @@ -1187,7 +1187,7 @@ function(matlab_add_mex) ${${prefix}_UNPARSED_ARGUMENTS}) endif() - target_include_directories(${${prefix}_NAME} PRIVATE ${Matlab_INCLUDE_DIRS}) + target_include_directories(${${prefix}_NAME} SYSTEM PRIVATE ${Matlab_INCLUDE_DIRS}) if(NOT ${prefix}_NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES) if(Matlab_HAS_CPP_API) |