Skip to content

Commit

Permalink
imgui: fix disabling of imgui
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 23, 2024
1 parent cf16f57 commit f9d32dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions recipes/ogre/1.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,11 @@ def _patch_sources(self):
'#include "stbi/', '#include "')
# Unvendor imgui in Overlay
# https://github.com/OGRECave/ogre/blob/v14.2.6/Components/Overlay/CMakeLists.txt#L21-L43
replace_in_file(self, os.path.join(self.source_folder, "Components", "Overlay", "CMakeLists.txt"),
"if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)", "if(0)")
replace_in_file(self, os.path.join(self.source_folder, "Components", "Overlay", "CMakeLists.txt"),
"list(REMOVE_ITEM SOURCE_FILES", "# list(REMOVE_ITEM SOURCE_FILES")
if not self.options.get_safe("build_component_overlay_imgui"):
replace_in_file(self, os.path.join(self.source_folder, "Components", "Overlay", "CMakeLists.txt"),
"if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)", "if(0)")
replace_in_file(self, os.path.join(self.source_folder, "Components", "Overlay", "CMakeLists.txt"),
"list(REMOVE_ITEM SOURCE_FILES", "# list(REMOVE_ITEM SOURCE_FILES")

def build(self):
self._patch_sources()
Expand Down

0 comments on commit f9d32dd

Please sign in to comment.