Skip to content

Commit

Permalink
Update CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API for CMake 3.27
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Sep 11, 2023
1 parent a825a67 commit 989b012
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.25)
endif()

if (NOT CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a") # CMake 3.26
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "aa1f7df0-828a-4fcd-9afc-2dc80491aca7") # CMake 3.27
else()
set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a") # CMake 3.26
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
endif()
endif()
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
endif()
endif()

Expand Down

0 comments on commit 989b012

Please sign in to comment.