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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Tobias Leibner
dune-common
Commits
01d0d513
Commit
01d0d513
authored
9 years ago
by
Christian Engwer
Committed by
Jö Fahlke
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] simplify Vc handling and add HAVE_VC to config.h
parent
19a279f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/modules/AddVcFlags.cmake
+0
-21
0 additions, 21 deletions
cmake/modules/AddVcFlags.cmake
cmake/modules/DuneCommonMacros.cmake
+8
-1
8 additions, 1 deletion
cmake/modules/DuneCommonMacros.cmake
config.h.cmake
+3
-0
3 additions, 0 deletions
config.h.cmake
with
11 additions
and
22 deletions
cmake/modules/AddVcFlags.cmake
deleted
100644 → 0
+
0
−
21
View file @
19a279f8
# Defines the functions to use GMP
#
# .. cmake_function:: add_dune_vc_flags
#
# .. cmake_param:: targets
# :positional:
# :single:
# :required:
#
# A list of targets to use GMP with.
#
function
(
add_dune_vc_flags _targets
)
if
(
Vc_FOUND
)
foreach
(
_target
${
_targets
}
)
target_link_libraries
(
${
_target
}
${
Vc_LIBRARIES
}
)
target_compile_options
(
${
_target
}
${
Vc_ALL_FLAGS
}
)
target_include_directories
(
${
_target
}
SYSTEM
${
Vc_INCLUDE_DIR
}
)
endforeach
(
_target
${
_targets
}
)
endif
(
Vc_FOUND
)
endfunction
(
add_dune_vc_flags
)
This diff is collapsed.
Click to expand it.
cmake/modules/DuneCommonMacros.cmake
+
8
−
1
View file @
01d0d513
...
...
@@ -26,5 +26,12 @@ include(AddGMPFlags)
find_package
(
Inkscape
)
include
(
UseInkscape
)
include
(
FindMProtect
)
# try to find the Vc library
find_package
(
Vc
)
include
(
AddVcFlags
)
set
(
HAVE_VC
${
Vc_FOUND
}
)
if
(
${
HAVE_VC
}
)
dune_register_package_flags
(
COMPILE_OPTIONS
"
${
Vc_ALL_FLAGS
}
"
LIBRARIES
"
${
Vc_LIBRARIES
}
"
INCLUDE_DIRS
"
${
Vc_INCLUDE_DIR
}
"
)
endif
(
${
HAVE_VC
}
)
This diff is collapsed.
Click to expand it.
config.h.cmake
+
3
−
0
View file @
01d0d513
...
...
@@ -45,6 +45,9 @@
to facilitate activating and deactivating GMP using compile flags. */
#cmakedefine HAVE_GMP ENABLE_GMP
/* Define to 1 if you have the Vc library. */
#cmakedefine HAVE_VC 1
/* Define to 1 if you have the symbol mprotect. */
#cmakedefine HAVE_MPROTECT 1
...
...
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