diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cf0a6122..20704eb98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,12 +242,15 @@ IF(NOT WIN32) ENDIF() # Enable Tests -OPTION (ENABLE_TESTS "Enable basic tests, run with 'make test'." ON) -IF(ENABLE_TESTS) - SET(BUILD_TESTSETS ON CACHE BOOL "") +IF(NOT MSVC) + OPTION (ENABLE_TESTS "Enable basic tests, run with 'make test'." ON) + IF(ENABLE_TESTS) + SET(BUILD_TESTSETS ON CACHE BOOL "") + ENDIF() +ELSE() + SET(ENABLE_TESTS OFF CACHE "") ENDIF() - # Enable Large file tests OPTION (ENABLE_LARGE_FILE_TESTS "Enable large file tests." OFF) IF(ENABLE_LARGE_FILE_TESTS)