diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2013-12-11 18:10:06 -0800 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2013-12-11 18:10:06 -0800 |
commit | 4d7c800b7375f98b9a26d0d1612d7d927fcc6fe9 (patch) | |
tree | c99fa07c139ad1c7103a214630202c8ea1a3627a /host/cmake/Modules/UHDUnitTest.cmake | |
parent | 51de21efd7be72bca90481716fe04ffb7002ecfb (diff) | |
download | uhd-4d7c800b7375f98b9a26d0d1612d7d927fcc6fe9.tar.gz uhd-4d7c800b7375f98b9a26d0d1612d7d927fcc6fe9.tar.bz2 uhd-4d7c800b7375f98b9a26d0d1612d7d927fcc6fe9.zip |
Merging Philip Balister's work for ARM cross-compilation.
Diffstat (limited to 'host/cmake/Modules/UHDUnitTest.cmake')
-rw-r--r-- | host/cmake/Modules/UHDUnitTest.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDUnitTest.cmake b/host/cmake/Modules/UHDUnitTest.cmake index 47cddc521..76fec14b8 100644 --- a/host/cmake/Modules/UHDUnitTest.cmake +++ b/host/cmake/Modules/UHDUnitTest.cmake @@ -64,7 +64,11 @@ function(UHD_ADD_TEST test_name) list(APPEND environs "PATH=${binpath}" "${LD_PATH_VAR}=${libpath}") #generate a bat file that sets the environment and runs the test - find_program(SHELL sh) + if (CMAKE_CROSSCOMPILING) + set(SHELL "/bin/sh") + else(CMAKE_CROSSCOMPILING) + find_program(SHELL sh) + endif(CMAKE_CROSSCOMPILING) set(sh_file ${CMAKE_CURRENT_BINARY_DIR}/${test_name}_test.sh) file(WRITE ${sh_file} "#!${SHELL}\n") #each line sets an environment variable |