diff options
author | Josh Blum | 2011-11-09 06:50:50 -0800 |
---|---|---|
committer | Josh Blum | 2011-11-09 06:50:50 -0800 |
commit | 9a25332b706b1ffadf8cdf9b405e89c37a1e2278 (patch) | |
tree | e4f7dbbdd23fd5ad4a98ba9db640ea87979c90a0 /cmake | |
parent | 3de9e901ae188c305745880645118e5952bdbbde (diff) | |
download | gnuradio-9a25332b706b1ffadf8cdf9b405e89c37a1e2278.tar.gz gnuradio-9a25332b706b1ffadf8cdf9b405e89c37a1e2278.tar.bz2 gnuradio-9a25332b706b1ffadf8cdf9b405e89c37a1e2278.zip |
cmake: only rely on target trick when not cross
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrMiscUtils.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/Modules/GrMiscUtils.cmake b/cmake/Modules/GrMiscUtils.cmake index 4a0ddd53a..0e1f40027 100644 --- a/cmake/Modules/GrMiscUtils.cmake +++ b/cmake/Modules/GrMiscUtils.cmake @@ -201,5 +201,10 @@ function(GR_GEN_TARGET_DEPS name var) if(ARGN) add_dependencies(${name} ${ARGN}) endif(ARGN) - set(${var} "DEPENDS;${name};COMMAND;${name}" PARENT_SCOPE) + + if(CMAKE_CROSSCOMPILING) + set(${var} "DEPENDS;${name}" PARENT_SCOPE) #cant call command when cross + else() + set(${var} "DEPENDS;${name};COMMAND;${name}" PARENT_SCOPE) + endif() endfunction(GR_GEN_TARGET_DEPS) |