meson: Don't generate cmake config files on for windows platform
authorsubhransu mohanty <sub.mohanty@samsung.com>
Fri, 12 Jul 2019 06:09:53 +0000 (15:09 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 18 Jul 2019 11:04:28 +0000 (20:04 +0900)
meson.build

index d4696d8..c4f49c8 100644 (file)
@@ -53,22 +53,24 @@ if get_option('test') == true
 endif
 
 
-cmake_bin = find_program('cmake', required: false)
-if cmake_bin.found()
-    cmake = import('cmake')
-    cmake.write_basic_package_version_file(
-        version: meson.project_version(),
-        name: 'rlottie',
-    )
-
-    cmakeconf = configuration_data()
-    cmakeconf.set('VERSION', meson.project_version())
-
-    cmake.configure_package_config_file(
-        input: meson.current_source_dir() + '/cmake/rlottieConfig.cmake.in',
-        name: 'rlottie',
-        configuration: cmakeconf,
-    )
+if host_machine.system() != 'windows'
+    cmake_bin = find_program('cmake', required: false)
+    if cmake_bin.found()
+        cmake = import('cmake')
+        cmake.write_basic_package_version_file(
+            version: meson.project_version(),
+            name: 'rlottie',
+        )
+
+        cmakeconf = configuration_data()
+        cmakeconf.set('VERSION', meson.project_version())
+
+        cmake.configure_package_config_file(
+            input: meson.current_source_dir() + '/cmake/rlottieConfig.cmake.in',
+            name: 'rlottie',
+            configuration: cmakeconf,
+        )
+    endif
 endif