From fc8fdcb16b5baeb2f7908d27297cd80d6846163f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Dec 2010 11:55:13 +0100 Subject: cmake: Only use Profiling on Unix systems. --- tests/ctest-default.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/ctest-default.cmake b/tests/ctest-default.cmake index 56e6541..06e06e4 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) -- cgit