Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
433173d9
Commit
433173d9
authored
Feb 04, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FindDlopen.cmake: Don't run the FindDlopen module more than once.
parent
2c86b239
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
26 deletions
+30
-26
extras/buildsystem/cmake/include/FindDlopen.cmake
extras/buildsystem/cmake/include/FindDlopen.cmake
+30
-26
No files found.
extras/buildsystem/cmake/include/FindDlopen.cmake
View file @
433173d9
...
@@ -8,12 +8,15 @@
...
@@ -8,12 +8,15 @@
# Copyright (c) 2007 Erik Johansson <erik@ejohansson.se>
# Copyright (c) 2007 Erik Johansson <erik@ejohansson.se>
# Redistribution and use is allowed according to the terms of the BSD license.
# Redistribution and use is allowed according to the terms of the BSD license.
include
(
CheckLibraryExists
)
# Assume dlopen is not found.
# Assume dlopen is not found.
set
(
Dlopen_FOUND FALSE
)
if
(
Dlopen_SEARCHED
)
include
(
CheckLibraryExists
)
foreach
(
library c c_r dl
)
set
(
Dlopen_SEARCHED TRUE
)
set
(
Dlopen_FOUND FALSE
)
foreach
(
library c c_r dl
)
if
(
NOT Dlopen_FOUND
)
if
(
NOT Dlopen_FOUND
)
check_library_exists
(
${
library
}
dlopen
""
Dlopen_IN_
${
library
}
)
check_library_exists
(
${
library
}
dlopen
""
Dlopen_IN_
${
library
}
)
...
@@ -23,16 +26,17 @@ foreach (library c c_r dl)
...
@@ -23,16 +26,17 @@ foreach (library c c_r dl)
endif
(
Dlopen_IN_
${
library
}
)
endif
(
Dlopen_IN_
${
library
}
)
endif
(
NOT Dlopen_FOUND
)
endif
(
NOT Dlopen_FOUND
)
endforeach
(
library
)
endforeach
(
library
)
if
(
Dlopen_FOUND
)
if
(
Dlopen_FOUND
)
if
(
NOT Dlopen_FIND_QUIETLY
)
if
(
NOT Dlopen_FIND_QUIETLY
)
message
(
STATUS
"Found dlopen in:
${
Dlopen_LIBRARIES
}
"
)
message
(
STATUS
"Found dlopen in:
${
Dlopen_LIBRARIES
}
"
)
endif
(
NOT Dlopen_FIND_QUIETLY
)
endif
(
NOT Dlopen_FIND_QUIETLY
)
else
(
Dlopen_FOUND
)
else
(
Dlopen_FOUND
)
if
(
Dlopen_FIND_REQUIRED
)
if
(
Dlopen_FIND_REQUIRED
)
message
(
FATAL_ERROR
"Could not find the library containing dlopen"
)
message
(
FATAL_ERROR
"Could not find the library containing dlopen"
)
endif
(
Dlopen_FIND_REQUIRED
)
endif
(
Dlopen_FIND_REQUIRED
)
endif
(
Dlopen_FOUND
)
endif
(
Dlopen_FOUND
)
mark_as_advanced
(
Dlopen_LIBRARIES
)
mark_as_advanced
(
Dlopen_LIBRARIES
)
endif
(
Dlopen_SEARCHED
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment