File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 1- if (${CMAKE_VERSION} VERSION_GREATER "3.4" )
2- CMAKE_MINIMUM_REQUIRED (VERSION 3.5)
3- else ()
4- CMAKE_MINIMUM_REQUIRED (VERSION 2.8.12)
5- IF ((CMAKE_VERSION VERSION_GREATER 3.1) OR
6- (CMAKE_VERSION VERSION_EQUAL 3.1))
7- CMAKE_POLICY (SET CMP0054 NEW)
8- ENDIF ()
9- endif ()
10-
11- IF ((CMAKE_VERSION VERSION_GREATER 3.27) OR
12- (CMAKE_VERSION VERSION_EQUAL 3.27))
13- CMAKE_POLICY (SET CMP0145 OLD)
14- ENDIF ()
1+ CMAKE_MINIMUM_REQUIRED (VERSION 3.5...4.0)
152
163OPTION (MSGPACK_BUILD_TESTS "Build msgpack tests." OFF )
174OPTION (MSGPACK_GEN_COVERAGE "Enable running gcov to get a test coverage report." OFF )
@@ -200,11 +187,11 @@ ENDIF ()
200187
201188IF (MSGPACK_BUILD_TESTS)
202189 ENABLE_TESTING ()
190+ INCLUDE (CTest)
203191 list (APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure" )
204192 # MEMORYCHECK_COMMAND_OPTIONS needs to place prior to CTEST_MEMORYCHECK_COMMAND
205193 SET (MEMORYCHECK_COMMAND_OPTIONS "--leak-check=full --show-leak-kinds=definite,possible --error-exitcode=1" )
206194 FIND_PROGRAM (CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
207- INCLUDE (Dart)
208195 ADD_SUBDIRECTORY (test )
209196ENDIF ()
210197
You can’t perform that action at this time.
0 commit comments