File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ cmake_minimum_required(VERSION 3.26)
3
3
project(libc++-modules LANGUAGES CXX)
4
4
5
5
# Enable CMake's module support
6
- if(CMAKE_VERSION VERSION_LESS "3.27.0")
7
- set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a")
6
+ if(CMAKE_VERSION VERSION_LESS "3.28.0")
7
+ if(CMAKE_VERSION VERSION_LESS "3.27.0")
8
+ set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a")
9
+ else()
10
+ set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "aa1f7df0-828a-4fcd-9afc-2dc80491aca7")
11
+ endif()
12
+ set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
8
13
else()
9
- set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "aa1f7df0-828a-4fcd-9afc-2dc80491aca7" )
14
+ cmake_policy(VERSION 3.28 )
10
15
endif()
11
- set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
12
16
13
17
# Default to C++ extensions being off. Libc++'s modules support have trouble
14
18
# with extensions right now.
You can’t perform that action at this time.
0 commit comments