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".
This commit is contained in:
Simon Richter 2023-07-02 00:44:59 +09:00 committed by Ian McInerney
parent c00c0cf581
commit 49a72f7cb4
1 changed files with 4 additions and 3 deletions

View File

@ -180,7 +180,8 @@ if(APPLE)
target_link_libraries(nanodbc ${ODBC_LINK_FLAGS}) target_link_libraries(nanodbc ${ODBC_LINK_FLAGS})
endif() endif()
target_include_directories(nanodbc PUBLIC SYSTEM target_include_directories(nanodbc SYSTEM
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include/nanodbc>) # <prefix>/include/nanodbc $<INSTALL_INTERFACE:include/nanodbc>) # <prefix>/include/nanodbc