Skip to content

Commit

Permalink
remove BUILD_PIC after 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toge committed Mar 12, 2022
1 parent fce67a0 commit eedbc42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/cpu_features/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def _configure_cmake(self):
if self._cmake:
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_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
Expand Down

0 comments on commit eedbc42

Please sign in to comment.