| 1 |
cmake_minimum_required(VERSION 3.24...3.28) |
| 2 |
project(cxx_modules_library NONE) |
| 3 |
|
| 4 |
set(CMAKE_VERSION "3.22.0") # Trigger non-fileset export code. |
| 5 |
find_package(export_include_directories_old_cmake REQUIRED) |
| 6 |
|
| 7 |
if (NOT TARGET CXXModules::export_include_directories_old_cmake) |
| 8 |
message(FATAL_ERROR |
| 9 |
"Missing imported target") |
| 10 |
endif () |
| 11 |
|
| 12 |
get_property(include_directories TARGET CXXModules::export_include_directories_old_cmake |
| 13 |
PROPERTY INTERFACE_INCLUDE_DIRECTORIES) |
| 14 |
if (include_directories) |
| 15 |
message(FATAL_ERROR |
| 16 |
"Exported include directory on C++ module interface CXXModules::export_include_directories_old_cmake:\n ${include_directories}") |
| 17 |
endif () |