Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
01a86bb6
Commit
01a86bb6
authored
14 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
Tweak find scripts to signify includes are like <libcorpus2/XXX.h> not just <XXX.h>
parent
f6a79879
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeScripts/FindCorpus2.cmake
+12
-7
12 additions, 7 deletions
CMakeScripts/FindCorpus2.cmake
CMakeScripts/FindPwrUtils.cmake
+13
-7
13 additions, 7 deletions
CMakeScripts/FindPwrUtils.cmake
with
25 additions
and
14 deletions
CMakeScripts/FindCorpus2.cmake
+
12
−
7
View file @
01a86bb6
FIND_PATH
(
Corpus2_INCLUDE_DIR token.h /usr/include/libcorpus2 /usr/local/include/libcorpus2
)
IF
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
#Already in cache
SET
(
Corpus2_FOUND TRUE
)
ELSE
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
FIND_PATH
(
Corpus2_INCLUDE_DIR libcorpus2/token.h /usr/include /usr/local/include
)
FIND_LIBRARY
(
Corpus2_LIBRARY
NAMES
corpus2
PATH
/usr/lib /usr/local/lib
)
FIND_LIBRARY
(
Corpus2_LIBRARY corpus2 /usr/lib /usr/local/lib
)
MARK_AS_ADVANCED
(
Corpus2_LIBRARY
)
MARK_AS_ADVANCED
(
Corpus2_INCLUDE_DIR
)
MARK_AS_ADVANCED
(
Corpus2_LIBRARY
)
MARK_AS_ADVANCED
(
Corpus2_INCLUDE_DIR
)
IF
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
SET
(
Corpus2_FOUND TRUE
)
ENDIF
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
IF
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
SET
(
Corpus2_FOUND TRUE
)
ENDIF
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
IF
(
Corpus2_FOUND
)
set
(
Corpus2_VERSION 0.0.0
)
FIND_FILE
(
_Corpus2_VERSION_FILE version.h
${
Corpus2_INCLUDE_DIR
}
)
FIND_FILE
(
_Corpus2_VERSION_FILE
libcorpus2/
version.h
${
Corpus2_INCLUDE_DIR
}
)
MARK_AS_ADVANCED
(
_Corpus2_VERSION_FILE
)
IF
(
_Corpus2_VERSION_FILE
)
FILE
(
READ
${
_Corpus2_VERSION_FILE
}
_Corpus2_VERSION_CONENTS
)
...
...
This diff is collapsed.
Click to expand it.
CMakeScripts/FindPwrUtils.cmake
+
13
−
7
View file @
01a86bb6
FIND_PATH
(
PwrUtils_INCLUDE_DIR foreach.h /usr/include/libpwrutils /usr/local/include/libpwrutils
)
IF
(
PwrUtils_INCLUDE_DIR AND PwrUtils_LIBRARY
)
#already in cache
SET
(
PwrUtils_FOUND TRUE
)
ELSE
(
PwrUtils_INCLUDE_DIR AND PwrUtils_LIBRARY
)
FIND_
LIBRARY
(
PwrUtils_
LIBRARY NAMES pwrutils PATH /usr/lib
/usr/local/
lib
)
FIND_
PATH
(
PwrUtils_
INCLUDE_DIR libpwrutils/foreach.h /usr/include
/usr/local/
include
)
MARK_AS_ADVANCED
(
PwrUtils_LIBRARY
)
MARK_AS_ADVANCED
(
PwrUtils_INCLUDE_DIR
)
FIND_LIBRARY
(
PwrUtils_LIBRARY pwrutils /usr/lib /usr/local/lib
)
MARK_AS_ADVANCED
(
PwrUtils_LIBRARY
)
MARK_AS_ADVANCED
(
PwrUtils_INCLUDE_DIR
)
IF
(
PwrUtils_INCLUDE_DIR AND PwrUtils_LIBRARY
)
SET
(
PwrUtils_FOUND TRUE
)
IF
(
PwrUtils_INCLUDE_DIR AND PwrUtils_LIBRARY
)
SET
(
PwrUtils_FOUND TRUE
)
ENDIF
(
PwrUtils_INCLUDE_DIR AND PwrUtils_LIBRARY
)
ENDIF
(
PwrUtils_INCLUDE_DIR AND PwrUtils_LIBRARY
)
IF
(
PwrUtils_FOUND
)
set
(
PwrUtils_VERSION 0.0.0
)
FIND_FILE
(
_PwrUtils_VERSION_FILE version.h
${
PwrUtils_INCLUDE_DIR
}
)
FIND_FILE
(
_PwrUtils_VERSION_FILE
libpwrutils/
version.h
${
PwrUtils_INCLUDE_DIR
}
)
MARK_AS_ADVANCED
(
_PwrUtils_VERSION_FILE
)
IF
(
_PwrUtils_VERSION_FILE
)
FILE
(
READ
${
_PwrUtils_VERSION_FILE
}
_PwrUtils_VERSION_CONENTS
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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