summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-06-01 10:08:57 -0700
committerGarrett D'Amore <garrett@damore.org>2018-06-01 12:43:56 -0700
commitc2a001e57b33682314964d32e2ed2ca67226d080 (patch)
tree203944e916e678d672164620669b4fe9750775d8 /CMakeLists.txt
parent566cf0dbbe51ce9b76a6c2bb2d6f81eebc274d21 (diff)
downloadnng-c2a001e57b33682314964d32e2ed2ca67226d080.tar.gz
nng-c2a001e57b33682314964d32e2ed2ca67226d080.tar.bz2
nng-c2a001e57b33682314964d32e2ed2ca67226d080.zip
fixes #496 nngcat tests fail in Xcode build
This avoids copying the tests, but runs them with bash from the source directory, and passes the path to the built nngcat binary to the script. It also permits these to run if we find bash, so that systems without bash won't run it and fail. We still only do this on POSIX though, because Windows bash is too broken to use for some of the tests.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03116540..abb1e214 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,6 +37,7 @@ include (CheckCCompilerFlag)
include (CMakeDependentOption)
include (GNUInstallDirs)
include (TestBigEndian)
+include (FindUnixCommands)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)