Archived
CMake: use BUILD_TESTING to control whether we shall enable testing
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
+4
-2
@@ -120,5 +120,7 @@ install(
|
||||
set (PROJECT_LIBRARIES tinycbor)
|
||||
include(PackageConfig)
|
||||
|
||||
enable_testing()
|
||||
add_subdirectory(tests)
|
||||
if(BUILD_TESTING)
|
||||
enable_testing()
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user