Skip to content

Commit

Permalink
[vcpkg] Use system installed imgui
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Jun 30, 2024
1 parent a9da476 commit c857f6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
bullet3
freeglut
glfw3
imgui
imgui[opengl2-binding]
nlopt
opengl
osg
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
-DDART_MSVC_DEFAULT_OPTIONS=ON ^
-DDART_VERBOSE=ON ^
-DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} ^
-DDART_USE_SYSTEM_IMGUI=OFF ^
-DDART_USE_SYSTEM_IMGUI=ON ^
|| exit /b
cmake ^
--build build ^
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_dartpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
bullet3
freeglut
glfw3
imgui
imgui[opengl2-binding]
nlopt
opengl
osg
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ def build_extension(self, ext: CMakeExtension) -> None:
# CMake 3.12+ only.
build_args += [f"-j{self.parallel}"]

cmake_args += ["-DDART_USE_SYSTEM_IMGUI=OFF"]
if sys.platform.startswith("msvc"):
cmake_args += ["-DDART_USE_SYSTEM_IMGUI=ON"]
else:
cmake_args += ["-DDART_USE_SYSTEM_IMGUI=OFF"]

build_temp = Path(self.build_temp) / ext.name
if not build_temp.exists():
Expand Down

0 comments on commit c857f6c

Please sign in to comment.