Skip to content

Commit

Permalink
Try with BUILD_SHARED_LIBS option removed
Browse files Browse the repository at this point in the history
  • Loading branch information
partiallyderived committed Nov 30, 2022
1 parent 1177828 commit 2833581
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/lzham/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ patches:
- patch_file: "patches/commits-1.0.0.patch"
patch_description: 'Updates code to latest commit for the repo
https://github.com/richgel999/lzham_codec'
patch_type: backport
patch_type: official

- patch_file: "patches/aarch64-yield-1.0.0.patch"
patch_description: 'Uses "yield" rather than "pause" mneumonic to fix
aarch64 build'
patch_type: backport
patch_type: portability

- patch_file: "patches/cmake-min-req-swap-1.0.0.patch"
patch_description: 'Puts cmake_minimum_required before project in all
CMakeLists'
patch_type: backport
patch_type: portability

- patch_file: "patches/fix-osx-1.0.0.patch"
patch_description: "Fixes building on OSX"
patch_type: backport
patch_type: portability

- patch_file: "patches/use-lzham-types-1.0.0.patch"
patch_description: 'Uses typedefs prefixed with LZHAM to fix linux build
errors'
patch_type: backport
patch_type: portability
6 changes: 6 additions & 0 deletions recipes/lzham/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ def _patch_sources(self):
"add_subdirectory(lzhamtest)\n",
""
)
replace_in_file(
self,
os.path.join(self.source_folder, "CMakeLists.txt"),
"option(BUILD_SHARED_LIBS \"build shared/static libs\" ON)",
""
)
return
new_sln = []
# Remove example and test projects from sln.
Expand Down

0 comments on commit 2833581

Please sign in to comment.