From ebc584b2a7bcc75215242cddc6f33dd361fadeb7 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Sun, 2 Jul 2023 00:44:59 +0900 Subject: [PATCH] Fix keyword order in include setup (Closes: #15081) The SYSTEM keyword can only be used before a visibility keyword, so "PUBLIC SYSTEM" declares an include directory named "SYSTEM". --- thirdparty/nanodbc/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/thirdparty/nanodbc/CMakeLists.txt b/thirdparty/nanodbc/CMakeLists.txt index 2d7c48d98e..224a6299be 100644 --- a/thirdparty/nanodbc/CMakeLists.txt +++ b/thirdparty/nanodbc/CMakeLists.txt @@ -180,9 +180,10 @@ if(APPLE) target_link_libraries(nanodbc ${ODBC_LINK_FLAGS}) endif() -target_include_directories(nanodbc PUBLIC SYSTEM - $ - $) # /include/nanodbc +target_include_directories(nanodbc SYSTEM + PUBLIC + $ + $) # /include/nanodbc if(UNIX) set_target_properties(nanodbc PROPERTIES