diff options
author | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2016-10-25 21:13:39 +0200 |
---|---|---|
committer | Christian as GENIVI Maintainer <genivi-maint-audiomanager@genivi.org> | 2016-11-14 01:12:24 -0800 |
commit | fcbee1b981b9f53430f03d414f6e17d489453fe6 (patch) | |
tree | 38db1aa0524e0b4c8e0bbb419ff435537e7faff1 /AudioManagerDaemon | |
parent | ad257b5ae132799723ae81f35d82cc3b11e51c54 (diff) | |
download | audiomanager-fcbee1b981b9f53430f03d414f6e17d489453fe6.tar.gz |
AudioManagerUtilities: use LINK_DIRECTORIES
The -L flags were not retrieved from pkg_check_modules, except
for automotive-dlt, where LDFLAGS was added to the LIBS variable,
which was then passed to TARGET_LINK_LIBRARIES.
This led to compile-time errors when compiling in a custom
prefix.
We also propagate the LIB_DIRECTORIES and use them in
AmControlInterfaceTest and AudioManagerDaemon.
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r-- | AudioManagerDaemon/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AudioManagerDaemon/CMakeLists.txt b/AudioManagerDaemon/CMakeLists.txt index 4399b05..9aa0754 100644 --- a/AudioManagerDaemon/CMakeLists.txt +++ b/AudioManagerDaemon/CMakeLists.txt @@ -33,6 +33,8 @@ INCLUDE_DIRECTORIES( ${TCLAP_INCLUDE_DIR} ) +LINK_DIRECTORIES(${AUDIO_MANAGER_CORE_LIB_DIRECTORIES}) + ADD_EXECUTABLE(AudioManager ${AUDIOMAN_SRCS_CXX}) TARGET_LINK_LIBRARIES(AudioManager AudioManagerCore ${AUDIO_MANAGER_CORE_LIBS}) |