mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	CMake: made project arch-independent
This commit is contained in:
		| @@ -5,6 +5,7 @@ HEAD | |||||||
| ---- | ---- | ||||||
|  |  | ||||||
| * CMake: don't build tests when imported in another project | * CMake: don't build tests when imported in another project | ||||||
|  | * CMake: made project arch-independent | ||||||
|  |  | ||||||
| v6.15.1 (2020-04-08) | v6.15.1 (2020-04-08) | ||||||
| ------- | ------- | ||||||
|   | |||||||
| @@ -37,12 +37,18 @@ install( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| include(CMakePackageConfigHelpers) | include(CMakePackageConfigHelpers) | ||||||
|  |  | ||||||
|  | if(${CMAKE_VERSION} VERSION_GREATER "3.14.0")  | ||||||
|  |     set(ARCH_INDEPENDENT "ARCH_INDEPENDENT") | ||||||
|  | endif() | ||||||
|  |  | ||||||
| write_basic_package_version_file( | write_basic_package_version_file( | ||||||
|         "${PROJECT_BINARY_DIR}/ArduinoJsonConfigVersion.cmake" |         "${PROJECT_BINARY_DIR}/ArduinoJsonConfigVersion.cmake" | ||||||
|     VERSION |     VERSION | ||||||
|         ${PROJECT_VERSION} |         ${PROJECT_VERSION} | ||||||
|     COMPATIBILITY |     COMPATIBILITY | ||||||
|         SameMajorVersion |         SameMajorVersion | ||||||
|  |     ${ARCH_INDEPENDENT} | ||||||
| ) | ) | ||||||
|  |  | ||||||
| configure_package_config_file( | configure_package_config_file( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user