Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmake-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cmake
cmake-library
Commits
6b813745
Commit
6b813745
authored
2 months ago
by
Martin Heistermann
Browse files
Options
Downloads
Patches
Plain Diff
FindCoinUtils cleanup
parent
c33ad2d5
No related branches found
No related tags found
1 merge request
!19
Finder improvements for LPSolve and CoinUtils
Pipeline
#25993
failed
2 months ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
finders/FindCoinUtils.cmake
+25
-27
25 additions, 27 deletions
finders/FindCoinUtils.cmake
with
25 additions
and
27 deletions
finders/FindCoinUtils.cmake
+
25
−
27
View file @
6b813745
# Try to find Coin-ORs CoinUtils: https://www.coin-or.org/
# On success, this will define the target Coin::CoinUtils
if
(
NOT TARGET Coin::CoinUtils
)
find_path
(
CoinUtils_INCLUDE_DIR
NAMES CoinPragma.hpp
PATHS
"$ENV{CoinUtils_DIR}/include/coin"
...
...
@@ -24,21 +25,18 @@ find_library( CoinUtils_LIBRARY
"/usr/lib/coin-or"
"/usr/lib/coin"
"/usr/lib"
"C:
\\
libs
\\
clp
\\
lib"
)
set
(
CoinUtils_INCLUDE_DIRS
"
${
CoinUtils_INCLUDE_DIR
}
"
)
set
(
CoinUtils_LIBRARIES
"
${
CoinUtils_LIBRARY
}
"
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
CoinUtils DEFAULT_MSG CoinUtils_LIBRARY CoinUtils_INCLUDE_DIR
)
mark_as_advanced
(
CoinUtils_INCLUDE_DIR CoinUtils_LIBRARY
)
if
(
CoinUtils_FOUND
)
add_library
(
Coin::CoinUtils SHARED IMPORTED
)
set_property
(
TARGET Coin::CoinUtils PROPERTY IMPORTED_LOCATION
${
CoinUtils_LIBRARY
}
)
target_include_directories
(
Coin::CoinUtils INTERFACE
${
CoinUtils_INCLUDE_DIR
}
)
set
(
CoinUtils_LIBRARIES
"Coin::CoinUtils"
)
endif
()
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
CoinUtils DEFAULT_MSG CoinUtils_LIBRARIES
)
mark_as_advanced
(
CoinUtils_INCLUDE_DIR CoinUtils_LIBRARY
)
endif
(
NOT TARGET Coin::CoinUtils
)
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