Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Joao Oliveira
Okular
Commits
2b4417c4
Commit
2b4417c4
authored
Jan 22, 2013
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not use LIBSPECTRE_FOUND as internal variable
Confuses newer cmakes
parent
30606cde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cmake/modules/FindLibSpectre.cmake
cmake/modules/FindLibSpectre.cmake
+6
-6
No files found.
cmake/modules/FindLibSpectre.cmake
View file @
2b4417c4
...
...
@@ -15,7 +15,7 @@
if
(
LIBSPECTRE_INCLUDE_DIR AND LIBSPECTRE_LIBRARY
)
# in cache already
set
(
LIBSPECTRE_FOUND TRUE
)
set
(
LIBSPECTRE_
INTERNAL_
FOUND TRUE
)
else
(
LIBSPECTRE_INCLUDE_DIR AND LIBSPECTRE_LIBRARY
)
...
...
@@ -33,7 +33,7 @@ if(NOT WIN32)
# query pkg-config asking for a libspectre >= LIBSPECTRE_MINIMUM_VERSION
EXEC_PROGRAM
(
${
PKGCONFIG_EXECUTABLE
}
ARGS --atleast-version=
${
LIBSPECTRE_MINIMUM_VERSION
}
libspectre RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull
)
if
(
_return_VALUE STREQUAL
"0"
)
set
(
LIBSPECTRE_FOUND TRUE
)
set
(
LIBSPECTRE_
INTERNAL_
FOUND TRUE
)
endif
(
_return_VALUE STREQUAL
"0"
)
endif
(
_SpectreLinkFlags
)
else
(
NOT WIN32
)
...
...
@@ -42,10 +42,10 @@ else(NOT WIN32)
find_path
(
LIBSPECTRE_INCLUDE_DIR spectre.h PATH_SUFFIXES libspectre
)
set
(
LIBSPECTRE_FOUND TRUE
)
set
(
LIBSPECTRE_
INTERNAL_
FOUND TRUE
)
endif
(
NOT WIN32
)
if
(
LIBSPECTRE_FOUND
)
if
(
LIBSPECTRE_
INTERNAL_
FOUND
)
set
(
LIBSPECTRE_LIBRARY
${
_SpectreLinkFlags
}
)
# the cflags for libspectre can contain more than one include path
...
...
@@ -55,10 +55,10 @@ if (LIBSPECTRE_FOUND)
set
(
LIBSPECTRE_INCLUDE_DIR
${
LIBSPECTRE_INCLUDE_DIR
}
${
_includedir
}
)
endforeach
(
_includedir
)
endif
(
LIBSPECTRE_FOUND
)
endif
(
LIBSPECTRE_
INTERNAL_
FOUND
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
LibSpectre DEFAULT_MSG LIBSPECTRE_LIBRARY LIBSPECTRE_FOUND
)
find_package_handle_standard_args
(
LibSpectre DEFAULT_MSG LIBSPECTRE_LIBRARY LIBSPECTRE_
INTERNAL_
FOUND
)
# ensure that they are cached
set
(
LIBSPECTRE_INCLUDE_DIR
${
LIBSPECTRE_INCLUDE_DIR
}
CACHE INTERNAL
"The libspectre include path"
)
...
...
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