Skip to content

Commit c978878

Browse files
committed
Merge #145: CTest: Module must be included at the top level
63ac092 CTest: Module must be included at the top level (Daniel Pfeifer) Pull request description: In order to be able to run `ctest` from the top level build directory, it is necessary that `enable_testing()` is invoked in the top level CMakeLists.txt file. The `CTest` module invokes `enable_testing()` based on the value of `BUILD_TESTING`. ACKs for top commit: hebasto: ACK 63ac092, tested on Ubuntu 24.04: Tree-SHA512: 042b3b4575e90db0c4c181d70407577ae373bc35faf9d4cccaf2816250746b76d6457f05bbd0e949cf6bc0bdb3beaf0d7f2c71e1b44c8aecc0215bdafa4a3837
2 parents 477405e + 63ac092 commit c978878

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ set(Libmultiprocess_EXTERNAL_MPGEN "" CACHE FILEPATH "If specified, should be fu
2828

2929
include("cmake/compat_config.cmake")
3030
include("cmake/pthread_checks.cmake")
31+
include(CTest)
3132
include(GNUInstallDirs)
3233

3334
# Set convenience variables for subdirectories.

test/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Distributed under the MIT software license, see the accompanying
33
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
include(CTest)
6-
75
# Custom test targets for convenience, based on
86
# https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/EmulateMakeCheck.
97
#

0 commit comments

Comments
 (0)