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:
parent
dcef21676d
commit
ebc584b2a7
|
@ -180,9 +180,10 @@ 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
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
PUBLIC
|
||||||
$<INSTALL_INTERFACE:include/nanodbc>) # <prefix>/include/nanodbc
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||||
|
$<INSTALL_INTERFACE:include/nanodbc>) # <prefix>/include/nanodbc
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
set_target_properties(nanodbc PROPERTIES
|
set_target_properties(nanodbc PROPERTIES
|
||||||
|
|
Loading…
Reference in New Issue