aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-30 11:55:13 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-30 11:55:13 +0100
commitfc8fdcb16b5baeb2f7908d27297cd80d6846163f (patch)
tree07215ca6a7bc2a6fafc56db1a5a58da4c182d9ec /tests
parentbe68cfe9238bb5bcc7708823d0ed7e767425492e (diff)
downloadlibssh-fc8fdcb16b5baeb2f7908d27297cd80d6846163f.tar.gz
libssh-fc8fdcb16b5baeb2f7908d27297cd80d6846163f.tar.xz
libssh-fc8fdcb16b5baeb2f7908d27297cd80d6846163f.zip
cmake: Only use Profiling on Unix systems.
Diffstat (limited to 'tests')
-rw-r--r--tests/ctest-default.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ctest-default.cmake b/tests/ctest-default.cmake
index 56e6541d..06e06e48 100644
--- a/tests/ctest-default.cmake
+++ b/tests/ctest-default.cmake
@@ -4,7 +4,8 @@ set(CTEST_SITE "host.libssh.org")
set(CTEST_BUILD_NAME "linux-gcc-default")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
-set(CTEST_BUILD_CONFIGURATION "Profiling")
+set(CTEST_BUILD_CONFIGURATION "Debug")
+
set(CTEST_BUILD_OPTIONS "-DWITH_TESTING=ON -DWITH_SSH1=ON -WITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON -DWITH_GCRYPT=OFF")
set(CTEST_SOURCE_DIRECTORY "${CTEST_DIRECTORY}/${CTEST_BUILD_NAME}/source")
@@ -18,6 +19,10 @@ set(WITH_COVERAGE FALSE)
#######################################################################
+if (WITH_COVERAGE AND NOT WIN32)
+ set(CTEST_BUILD_CONFIGURATION "Profiling")
+endif (WITH_COVERAGE AND NOT WIN32)
+
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
find_program(CTEST_GIT_COMMAND NAMES git)