Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
ag-ohlberger
dune-community
dune-xt
Commits
9ef7df37
Commit
9ef7df37
authored
12 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] fixed ug
parent
edb50233
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
cmake/GridUtils.cmake
+3
-9
3 additions, 9 deletions
cmake/GridUtils.cmake
with
3 additions
and
9 deletions
cmake/GridUtils.cmake
+
3
−
9
View file @
9ef7df37
...
...
@@ -11,17 +11,11 @@ if( ${GRIDTYPE} MATCHES "UGGRID" )
if
(
NOT UG_GRID_FOUND
)
message
(
FATAL_ERROR
"Gridtype
${
GRIDTYPE
}
requested, but libug was not found!"
)
endif
(
NOT UG_GRID_FOUND
)
# ug needs Xt, but the libXt.so seems to be missing sometimes
SET
(
TMP_CMAKE_FIND_LIBRARY_SUFFIXES
${
CMAKE_FIND_LIBRARY_SUFFIXES
}
)
SET
(
CMAKE_FIND_LIBRARY_SUFFIXES
${
TMP_CMAKE_FIND_LIBRARY_SUFFIXES
}
".so.6"
)
find_library
(
XT_FOUND Xt
)
SET
(
CMAKE_FIND_LIBRARY_SUFFIXES
${
TMP_CMAKE_FIND_LIBRARY_SUFFIXES
}
)
if
(
NOT XT_FOUND
)
message
(
FATAL_ERROR
"Gridtype UGGRID requested, but libXt was not found!"
)
endif
(
NOT XT_FOUND
)
include_sys_dir
(
${
UG_GRID_INCLUDE_DIRS
}
)
link_directories
(
${
UG_GRID_LIBRARY_DIRS
}
)
set
(
GRIDLIBS ugS2 ugS3 devX ugL2 ugL3 SM ICE X11
${
XT_FOUND
}
)
# althoug we use pkg_config to find ug we do not use UG_LIBRARIES,
# because those listed in lubug.pc are wrong
set
(
GRIDLIBS ugS2 ugS3 devS m
)
add_definitions
(
"-DENABLE_UG=1"
)
endif
(
${
GRIDTYPE
}
MATCHES
"UGGRID"
)
...
...
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