Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 096d402

Browse files
committed
Cached CMake package files also need version update
1 parent 684ba7a commit 096d402

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/cmake_package_files/CppUTestConfigVersion.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
88
# but only if the requested major version is the same as the current one.
99
# The variable CVF_VERSION must be set before calling configure_file().
10-
set(PACKAGE_VERSION "3.8")
10+
set(PACKAGE_VERSION "4.0")
1111
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
1212
set(PACKAGE_VERSION_COMPATIBLE FALSE)
1313
else()
14-
if("3.8" MATCHES "^([0-9]+)\\.")
14+
if("4.0" MATCHES "^([0-9]+)\\.")
1515
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
1616
else()
17-
set(CVF_VERSION_MAJOR "3.8")
17+
set(CVF_VERSION_MAJOR "4.0")
1818
endif()
1919
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
2020
set(PACKAGE_VERSION_COMPATIBLE TRUE)

0 commit comments

Comments
 (0)