Skip to content

Commit

Permalink
cpu_features: add version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toge committed Mar 10, 2022
1 parent c23140c commit fce67a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/cpu_features/all/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ project(cmake_wrapper)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
conan_basic_setup(KEEP_RPATHS)

add_subdirectory("source_subfolder")
3 changes: 3 additions & 0 deletions recipes/cpu_features/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"0.7.0":
url: "https://github.com/google/cpu_features/archive/refs/tags/v0.7.0.tar.gz"
sha256: "df80d9439abf741c7d2fdcdfd2d26528b136e6c52976be8bd0cd5e45a27262c0"
"0.6.0":
url: "https://github.com/google/cpu_features/archive/refs/tags/v0.6.0.tar.gz"
sha256: "95a1cf6f24948031df114798a97eea2a71143bd38a4d07d9a758dda3924c1932"
Expand Down
2 changes: 2 additions & 0 deletions recipes/cpu_features/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def _configure_cmake(self):
return self._cmake
self._cmake = CMake(self)
self._cmake.definitions["BUILD_PIC"] = self.options.get_safe("fPIC", True)
if tools.Version(self.version) >= "0.7.0":
self._cmake.definitions["BUILD_TESTING"] = False
# TODO: should be handled by CMake helper
if tools.is_apple_os(self.settings.os) and self.settings.arch in ["armv8", "armv8_32", "armv8.3"]:
self._cmake.definitions["CMAKE_SYSTEM_PROCESSOR"] = "aarch64"
Expand Down
2 changes: 2 additions & 0 deletions recipes/cpu_features/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"0.7.0":
folder: "all"
"0.6.0":
folder: "all"

0 comments on commit fce67a0

Please sign in to comment.