Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Timo Koch
dune-common
Commits
b6543470
Commit
b6543470
authored
12 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Moved project() call, now the variables should be defined for all installations.
[[Imported from SVN: r6744]]
parent
b3791c28
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-0
3 additions, 0 deletions
CMakeLists.txt
cmake/modules/DuneMacros.cmake
+8
-1
8 additions, 1 deletion
cmake/modules/DuneMacros.cmake
with
11 additions
and
1 deletion
CMakeLists.txt
+
3
−
0
View file @
b6543470
# set up project
project
(
"dune-common"
C CXX
)
# general stuff
cmake_minimum_required
(
VERSION 2.8
)
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/DuneMacros.cmake
+
8
−
1
View file @
b6543470
...
...
@@ -109,11 +109,18 @@ macro(dune_project)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-funroll-loops -O3"
)
set
(
CMAKE_C_FLAGS_RELEASE
"-funroll-loops -O3"
)
# extract information from dune.module
dune_module_information
(
${
CMAKE_SOURCE_DIR
}
)
set
(
ProjectName
"
${
DUNE_MOD_NAME
}
"
)
set
(
ProjectVersion
"
${
DUNE_MOD_VERSION
}
"
)
set
(
ProjectMaintainerEmail
"
${
DUNE_MAINTAINER
}
"
)
project
(
${
ProjectName
}
C CXX
)
# assert the project names matches
if
(
NOT
(
ProjectName STREQUAL CMAKE_PROJECT_NAME
))
message
(
FATAL_ERROR
"Module name from dune.module does not match the name given in CMakeLists.txt."
)
endif
(
NOT
(
ProjectName STREQUAL CMAKE_PROJECT_NAME
))
# optional Fortran support
include
(
LanguageSupport
)
workaround_9220
(
Fortran Fortran_Works
)
if
(
Fortran_Works
)
...
...
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