diff options
Diffstat (limited to 'cmakeconfig')
-rw-r--r-- | cmakeconfig/meson.build | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/cmakeconfig/meson.build b/cmakeconfig/meson.build index 158b2a9..6140375 100644 --- a/cmakeconfig/meson.build +++ b/cmakeconfig/meson.build | |||
@@ -31,6 +31,9 @@ cmake_version_src = [ | |||
31 | 'Elementary', | 31 | 'Elementary', |
32 | ] | 32 | ] |
33 | 33 | ||
34 | conf = configuration_data() | ||
35 | conf.set('VERSION', meson.project_version()) | ||
36 | |||
34 | foreach cmake_file : cmake_src | 37 | foreach cmake_file : cmake_src |
35 | configure_file( | 38 | configure_file( |
36 | input: cmake_file+'Config.cmake.in', | 39 | input: cmake_file+'Config.cmake.in', |
@@ -38,19 +41,21 @@ foreach cmake_file : cmake_src | |||
38 | install_dir: join_paths(dir_lib, 'cmake', cmake_file), | 41 | install_dir: join_paths(dir_lib, 'cmake', cmake_file), |
39 | copy: true, | 42 | copy: true, |
40 | ) | 43 | ) |
41 | endforeach | 44 | if cmake_version_src.contains(cmake_src) |
42 | 45 | configure_file( | |
43 | conf = configuration_data() | 46 | input: cmake_version_file+'ConfigVersion.cmake.in', |
44 | 47 | output: cmake_version_file+'ConfigVersion.cmake', | |
45 | conf.set('VERSION', meson.version()) | 48 | install_dir: join_paths(dir_lib, 'cmake', cmake_version_file), |
46 | 49 | configuration : conf, | |
47 | foreach cmake_version_file : cmake_version_src | 50 | ) |
48 | configure_file( | 51 | else |
49 | input: cmake_version_file+'ConfigVersion.cmake.in', | 52 | configure_file( |
50 | output: cmake_version_file+'ConfigVersion.cmake', | 53 | input: 'EflConfigVersion.cmake.in', |
51 | install_dir: join_paths(dir_lib, 'cmake', cmake_version_file), | 54 | output: cmake_file+'ConfigVersion.cmake', |
52 | configuration : conf, | 55 | install_dir: join_paths(dir_lib, 'cmake', cmake_file), |
53 | ) | 56 | configuration : conf, |
57 | ) | ||
58 | endif | ||
54 | endforeach | 59 | endforeach |
55 | 60 | ||
56 | configure_file( | 61 | configure_file( |