Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
Analysers
corpus2
Merge requests
!17
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Develop
develop
into
master
Overview
0
Commits
7
Pipelines
2
Changes
37
Merged
Develop
Bartosz Ziemba
requested to merge
develop
into
master
Feb 23, 2021
Overview
0
Commits
7
Pipelines
2
Changes
37
Fixed datadir lookup problem. Added docker images versioning.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
26b375b7
7 commits,
Feb 23, 2021
37 files
+
31
−
232462
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
37
src/corpus2mwe/CMakeScripts/FindCorpus2.cmake deleted
100644 → 0
+
0
−
49
View file @ 27d636f7
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 corpus2 /usr/lib /usr/local/lib
)
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
)
ENDIF
(
Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY
)
IF
(
Corpus2_FOUND
)
set
(
Corpus2_VERSION 0.0.0
)
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
)
STRING
(
REGEX REPLACE
".*#define LIBCORPUS2_VERSION
\\\"
([0-9.]+)
\\\"
.*"
"
\\
1"
Corpus2_VERSION
"
${
_Corpus2_VERSION_CONENTS
}
"
)
ENDIF
(
_Corpus2_VERSION_FILE
)
IF
(
Corpus2_FIND_VERSION
)
IF
(
Corpus2_VERSION VERSION_LESS Corpus2_FIND_VERSION
)
IF
(
Corpus2_FIND_REQUIRED
)
MESSAGE
(
${
_Corpus2_VERSION_FILE
}
)
MESSAGE
(
FATAL_ERROR
"Corpus2 version too old:
${
Corpus2_VERSION
}
, requested >=
${
Corpus2_FIND_VERSION
}
"
)
ELSE
(
Corpus2_FIND_REQUIRED
)
IF
(
NOT Corpus2_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Corpus2 version too old:
${
Corpus2_VERSION
}
, requested >=
${
Corpus2_FIND_VERSION
}
"
)
ENDIF
(
NOT Corpus2_FIND_QUIETLY
)
ENDIF
(
Corpus2_FIND_REQUIRED
)
set
(
Corpus2_FOUND False
)
ENDIF
(
Corpus2_VERSION VERSION_LESS Corpus2_FIND_VERSION
)
ENDIF
(
Corpus2_FIND_VERSION
)
IF
(
NOT Corpus2_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found libcorpus2
${
Corpus2_VERSION
}
:
${
Corpus2_LIBRARY
}
"
)
ENDIF
(
NOT Corpus2_FIND_QUIETLY
)
ELSE
(
Corpus2_FOUND
)
IF
(
Corpus2_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find libcorpus2"
)
ELSE
(
Corpus2_FIND_REQUIRED
)
MESSAGE
(
STATUS
"libcorpus2 not found"
)
ENDIF
(
Corpus2_FIND_REQUIRED
)
ENDIF
(
Corpus2_FOUND
)
Loading