Skip to content
Snippets Groups Projects
Commit 09e47a08 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Merge branch 'AddLibraryFix-master-20201130' into 'master'

atlas_add_library(...) Fix, master branch (2020.11.30.)

See merge request atlas/atlasexternals!778
parents 4e708b9d 4f850bb9
No related branches found
Tags 2.0.89
No related merge requests found
......@@ -206,13 +206,15 @@ function( atlas_add_library libName )
PRIVATE
${ARG_PRIVATE_INCLUDE_DIRS} )
target_include_directories( ${libName} BEFORE PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:src/${pkgDir}> )
endif()
else()
target_include_directories( ${libName} SYSTEM BEFORE INTERFACE
${ARG_INCLUDE_DIRS} )
target_include_directories( ${libName} BEFORE INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:src/${pkgDir}> )
if( ARG_PRIVATE_INCLUDE_DIRS )
message( WARNING "Private include directories are not meaningful for "
"interface libraries" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment