Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
41e10255
Commit
41e10255
authored
12 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Simplified FindShapelib.cmake.
parent
80df8365
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cmake/FindShapelib.cmake
+16
-38
16 additions, 38 deletions
scripts/cmake/FindShapelib.cmake
with
16 additions
and
38 deletions
scripts/cmake/FindShapelib.cmake
+
16
−
38
View file @
41e10255
...
@@ -9,50 +9,28 @@ if (NOT Shapelib_FOUND)
...
@@ -9,50 +9,28 @@ if (NOT Shapelib_FOUND)
include
(
LibFindMacros
)
include
(
LibFindMacros
)
set
(
SEARCH_DIRS
${
CMAKE_SOURCE_DIR
}
/../Libs/shapelib
C:/OGS_Libs/shapelib
$ENV{OGS_LIBS}/shapelib
${
OGS_LIBS_DIR_FOUND
}
/shapelib
)
find_path
(
Shapelib_INCLUDE_DIR
find_path
(
Shapelib_INCLUDE_DIR
NAMES shapefil.h
NAMES shapefil.h
PATHS
PATHS
/usr/include/libshp
/usr/include/libshp
/usr/include
${
SEARCH_DIRS
}
${
CMAKE_SOURCE_DIR
}
/../Libs/shapelib
C:/OGS_Libs/shapelib
$ENV{OGS_LIBS}/shapelib
${
OGS_LIBS_DIR_FOUND
}
/shapelib
)
)
if
(
UNIX
)
find_library
(
Shapelib_LIBRARIES
find_library
(
Shapelib_LIBRARIES
NAMES shp
NAMES shp
PATHS
${
SEARCH_DIRS
}
PATHS
)
/usr/lib64
find_library
(
Shapelib_LIBRARIES
/usr/lib
NAMES shapelib
${
CMAKE_SOURCE_DIR
}
/../Libs/shapelib
PATHS
${
SEARCH_DIRS
}
${
OGS_LIBS_DIR_FOUND
}
/shapelib
)
)
find_library
(
Shapelib_LIBRARIES
NAMES shapelib.a
PATHS
/usr/lib64
/usr/lib
${
CMAKE_SOURCE_DIR
}
/../Libs/shapelib/
${
OGS_LIBS_DIR_FOUND
}
/shapelib
)
find_library
(
Shapelib_LIBRARIES
NAMES shapelib
PATHS
/usr/lib64
/usr/lib
${
CMAKE_SOURCE_DIR
}
/../Libs/shapelib/
${
OGS_LIBS_DIR_FOUND
}
/shapelib
)
else
(
UNIX
)
find_library
(
Shapelib_LIBRARIES
NAMES shapelib
PATHS
${
CMAKE_SOURCE_DIR
}
/../Libs/shapelib
${
OGS_LIBS_DIR_FOUND
}
/shapelib
)
endif
(
UNIX
)
# Set the include dir variables and the libraries and let libfind_process do the rest.
# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
...
...
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