Skip to content

Commit

Permalink
CMAKE: add libglfw3-dev to linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
perroboc committed Sep 3, 2024
1 parent eaa15ad commit 96e39a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install -y libpulse-dev libglvnd-dev libx11-dev libopenal-dev libvulkan-dev \
sudo apt-get install -y libglfw3-dev libpulse-dev libglvnd-dev libx11-dev libopenal-dev libvulkan-dev \
libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libgtk-3-dev ninja-build dotnet-sdk-3.1 \
xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev zenity
Expand Down
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,13 @@ if(BUILD_VIEWER OR BUILD_EXAMPLES OR BUILD_TEST)

# Check for glfw3
if(WIN32 OR APPLE)
message(STATUS "Skipping pkg-config checks on Windows")
set(GLFW3_LIB_DEBUG "glfw3")
set(GLFW3_LIB_RELEASE "glfw3")
if(BUILD_WITH_POSTFIX)
set(GLFW3_LIB_DEBUG "glfw3d")
set(GLFW3_LIB_RELEASE "glfw3")
else()
set(GLFW3_LIB_DEBUG "glfw3")
set(GLFW3_LIB_RELEASE "glfw3")
endif()
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLFW3 glfw3)
Expand Down

0 comments on commit 96e39a7

Please sign in to comment.