diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-29 09:44:17 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:47 +0200 |
commit | 1a664ff65e3fe1cf7d925b2aff0208a852ca560d (patch) | |
tree | 677702233f25934d79de16d36c79caa226708e46 /cmake/cmake.d/03-extra_targets.cmake | |
parent | 1999dbae38849ce636011ed81fb91223ad26d292 (diff) |
Fix: Debian things triggered even when use the SDK
USe variable reference not its value to test if defined
Change-Id: If59be00e2666d9e66f386fe0ca2cf39b386d0197
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d/03-extra_targets.cmake')
-rw-r--r-- | cmake/cmake.d/03-extra_targets.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/cmake.d/03-extra_targets.cmake b/cmake/cmake.d/03-extra_targets.cmake index 56f9b78..35fb2e3 100644 --- a/cmake/cmake.d/03-extra_targets.cmake +++ b/cmake/cmake.d/03-extra_targets.cmake @@ -85,7 +85,7 @@ foreach (PKG_CONFIG ${PKG_REQUIRED_LIST}) # package providing the pkg-cong file ${XPREFIX}.pc, we need # to test the OS release package type # Only doable within a native environment not under SDK - if( OSRELEASE MATCHES "debian" AND NOT DEFINED $ENV{SDKTARGETSYSROOT}) + if( OSRELEASE MATCHES "debian" AND NOT DEFINED ENV{SDKTARGETSYSROOT}) execute_process( COMMAND dpkg -S *${XPREFIX}.pc OUTPUT_VARIABLE TMP_PKG_BIN |