Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glfw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirvi-public
glfw
Commits
365321a9
Commit
365321a9
authored
5 years ago
by
Camilla Löwy
Browse files
Options
Downloads
Patches
Plain Diff
Add dependency name hints to CMake error messages
Fixes #1605. (cherry picked from commit
a43f5456
)
parent
d8648876
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+6
-6
6 additions, 6 deletions
CMakeLists.txt
README.md
+1
-0
1 addition, 0 deletions
README.md
with
7 additions
and
6 deletions
CMakeLists.txt
+
6
−
6
View file @
365321a9
...
...
@@ -71,7 +71,7 @@ if (MSVC)
include
(
CheckIncludeFile
)
check_include_file
(
dinput.h DINPUT_H_FOUND
)
if
(
NOT DINPUT_H_FOUND
)
message
(
FATAL_ERROR
"DirectX 9
SDK
not found"
)
message
(
FATAL_ERROR
"DirectX 9
headers
not found
; install DirectX 9 SDK
"
)
endif
()
# Workaround for VS 2008 not shipping with stdint.h
list
(
APPEND glfw_INCLUDE_DIRS
"
${
GLFW_SOURCE_DIR
}
/deps/vs2008"
)
...
...
@@ -203,27 +203,27 @@ if (_GLFW_X11)
# Check for XRandR (modern resolution switching and gamma control)
if
(
NOT X11_Xrandr_INCLUDE_PATH
)
message
(
FATAL_ERROR
"
The
RandR headers
were
not found"
)
message
(
FATAL_ERROR
"RandR headers not found
; install libxrandr development package
"
)
endif
()
# Check for Xinerama (legacy multi-monitor support)
if
(
NOT X11_Xinerama_INCLUDE_PATH
)
message
(
FATAL_ERROR
"
The
Xinerama headers
were
not found"
)
message
(
FATAL_ERROR
"Xinerama headers not found
; install libxinerama development package
"
)
endif
()
# Check for Xkb (X keyboard extension)
if
(
NOT X11_Xkb_INCLUDE_PATH
)
message
(
FATAL_ERROR
"
The X keyboard extension
headers
were
not found"
)
message
(
FATAL_ERROR
"
XKB
headers not found
; install X11 development package
"
)
endif
()
# Check for Xcursor (cursor creation from RGBA images)
if
(
NOT X11_Xcursor_INCLUDE_PATH
)
message
(
FATAL_ERROR
"
The
Xcursor headers
were
not found"
)
message
(
FATAL_ERROR
"Xcursor headers not found
; install libxcursor development package
"
)
endif
()
# Check for XInput (modern HID input)
if
(
NOT X11_Xi_INCLUDE_PATH
)
message
(
FATAL_ERROR
"
The
XInput headers
were
not found"
)
message
(
FATAL_ERROR
"XInput headers not found
; install libxi development package
"
)
endif
()
list
(
APPEND glfw_INCLUDE_DIRS
"
${
X11_Xrandr_INCLUDE_PATH
}
"
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
365321a9
...
...
@@ -292,6 +292,7 @@ skills.
-
Alexandre Pretyman
-
Pablo Prietz
-
przemekmirek
-
pthom
-
Guillaume Racicot
-
Philip Rideout
-
Eddie Ringle
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment