Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Pawian
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
PWA
Pawian
Commits
429930e5
Commit
429930e5
authored
14 years ago
by
Bertram Kopf
Browse files
Options
Downloads
Patches
Plain Diff
added file FindGeneva.cmake
parent
154e6e3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeModules/FindGeneva.cmake
+47
-0
47 additions, 0 deletions
CMakeModules/FindGeneva.cmake
with
47 additions
and
0 deletions
CMakeModules/FindGeneva.cmake
0 → 100644
+
47
−
0
View file @
429930e5
# If Minuit2_ROOT was defined in the environment, use it.
if
(
NOT GENEVA_ROOT AND NOT $ENV{GENEVA_ROOT} STREQUAL
""
)
set
(
GENEVA_ROOT $ENV{GENEVA_ROOT}
)
endif
()
if
(
GENEVA_ROOT
)
set
(
_GENEVA_INCLUDE_SEARCH_DIRS
${
GENEVA_INCLUDEDIR
}
${
GENEVA_ROOT
}
/include
${
GENEVA_ROOT
}
/inc
${
GENEVA_ROOT
}
)
set
(
_GENEVA_LIBRARIES_SEARCH_DIRS
${
GENEVA_LIBRARYDIR
}
${
GENEVA_ROOT
}
/lib
${
GENEVA_ROOT
}
/src/.libs
${
GENEVA_ROOT
}
)
endif
()
find_path
(
GENEVA_INCLUDE_DIRS GBoolean.hpp
HINTS
${
_GENEVA_INCLUDE_SEARCH_DIRS
}
)
set
(
GENEVA_LIBRARIES geneva-opt libgeneva-extcomm
)
find_library
(
GENEVA_LIBRARY
${
GENEVA_LIBRARIES
}
HINTS
${
_GENEVA_LIBRARIES_SEARCH_DIRS
}
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
GENEVA DEFAULT_MSG
GENEVA_INCLUDE_DIRS GENEVA_LIBRARY
)
# If Minuit2 is built with GCC and OpenMP enabled, it contains
# undefined references to some omp_* and GOMP_* symbols. 3rd-party
# programs therefore need to link to gomp on their own.
#if(UNIX)
# execute_process(COMMAND ldd -r ${Minuit2_LIBRARY}
# ERROR_VARIABLE Minuit2_LDD_ERROR OUTPUT_QUIET)
# if (Minuit2_LDD_ERROR MATCHES "undefined.*GOMP")
# set(Minuit2_LIBRARIES ${Minuit2_LIBRARIES} gomp)
# endif()
#endif()
get_filename_component
(
GENEVA_LIBRARY_DIRS
${
GENEVA_LIBRARY
}
PATH
)
mark_as_advanced
(
GENEVA_INCLUDE_DIRS
GENEVA_LIBRARY_DIRS
GENEVA_LIBRARIES
)
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