Skip to content

Commit 9b507f4

Browse files
committed
add comment about CMAKE policy
1 parent 49160c7 commit 9b507f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
cmake_minimum_required (VERSION 3.20 FATAL_ERROR)
1717
# cmake_policy(VERSION 3.18)
1818

19+
# See https://cmake.org/cmake/help/latest/policy/CMP0048.html#policy:CMP0048
20+
# as of Feb 2026, dunesw mrb-built products set the version in the
21+
# CMAKE_PROJECT_VERSION_STRING set, and not in the project line.
22+
# but we must be using the OLD policy. Setting the version string
23+
# here will get overwritten by the project line with the same value when
24+
# we migrate to the NEW policy
25+
1926
set(PROJECT_VERSION 03.12.00)
2027
project(duneanaobj VERSION ${PROJECT_VERSION} LANGUAGES CXX)
2128
set(${PROJECT_NAME}_CMAKE_PROJECT_VERSION_STRING ${PROJECT_VERSION})

0 commit comments

Comments
 (0)