Merge pull request #3312 from bmiklautz/commtests

Disable comm tests per default
This commit is contained in:
akallabeth 2016-05-02 18:08:46 +02:00
commit 9591d2e7f2
2 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ option(WITH_SMARTCARD_INSPECT "Enable SmartCard API Inspector" OFF)
option(BUILD_TESTING "Build unit tests" OFF)
CMAKE_DEPENDENT_OPTION(TESTS_WTSAPI_EXTRA "Build extra WTSAPI tests (interactive)" OFF "BUILD_TESTING" OFF)
CMAKE_DEPENDENT_OPTION(BUILD_COMM_TESTS "Build comm related tests (require comm port)" OFF "BUILD_TESTING" OFF)
option(WITH_SAMPLE "Build sample code" OFF)

View File

@ -34,7 +34,7 @@ if(UNIX AND NOT WIN32 AND NOT APPLE)
winpr_module_add(${${MODULE_PREFIX}_SRCS})
if(BUILD_TESTING)
if(BUILD_TESTING AND BUILD_COMM_TESTS)
add_subdirectory(test)
endif()
endif()
endif()