Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
acb8803f
Commit
acb8803f
authored
15 years ago
by
Marcel Loose
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1310: Make XXX a required package, if USE_XXX is ON. Added support for Pthreads
parent
60549b01
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/LofarOptions.cmake
+18
-12
18 additions, 12 deletions
CMake/LofarOptions.cmake
with
18 additions
and
12 deletions
CMake/LofarOptions.cmake
+
18
−
12
View file @
acb8803f
...
...
@@ -20,16 +20,18 @@
#
# $Id$
include
(
LofarFindPackage
)
if
(
NOT DEFINED LOFAR_OPTIONS_INCLUDED
)
set
(
LOFAR_OPTIONS_INCLUDED TRUE
)
## --------------------------------------------------------------------------
##
Handle contradicting options
##
Include wrapper macro for find_package()
## --------------------------------------------------------------------------
include
(
LofarFindPackage
)
## --------------------------------------------------------------------------
## Handle contradicting options
## --------------------------------------------------------------------------
if
(
USE_LOG4CXX AND USE_LOG4CPLUS
)
message
(
FATAL_ERROR
"You cannot use more than one logger implementation. "
...
...
@@ -42,11 +44,9 @@ if(NOT DEFINED LOFAR_OPTIONS_INCLUDED)
"Please check your variants file!"
)
endif
(
BUILD_STATIC_EXECUTABLES AND BUILD_SHARED_LIBS
)
## --------------------------------------------------------------------------
## Handle each option
## --------------------------------------------------------------------------
if
(
BUILD_STATIC_EXECUTABLES
)
set
(
CMAKE_EXE_LINKER_FLAGS -static
)
set
(
CMAKE_FIND_LIBRARY_SUFFIXES .a
)
...
...
@@ -65,19 +65,19 @@ if(NOT DEFINED LOFAR_OPTIONS_INCLUDED)
# endif(USE_AIPSPP)
if
(
USE_BACKTRACE
)
lofar_find_package
(
Backtrace
)
lofar_find_package
(
Backtrace
REQUIRED
)
endif
(
USE_BACKTRACE
)
if
(
USE_LOG4CXX
)
lofar_find_package
(
Log4Cxx
)
lofar_find_package
(
Log4Cxx
REQUIRED
)
endif
(
USE_LOG4CXX
)
if
(
USE_LOG4CPLUS
)
lofar_find_package
(
Log4Cplus
)
lofar_find_package
(
Log4Cplus
REQUIRED
)
endif
(
USE_LOG4CPLUS
)
if
(
USE_MPI
)
lofar_find_package
(
MPI
)
lofar_find_package
(
MPI
REQUIRED
)
endif
(
USE_MPI
)
if
(
USE_PYTHON
)
...
...
@@ -85,8 +85,8 @@ if(NOT DEFINED LOFAR_OPTIONS_INCLUDED)
endif
(
USE_PYTHON
)
if
(
USE_SSE
)
set
(
GNU_SSE_FLAGS
"-msse2"
)
set
(
ICC_SSE_FLAGS
"-xW"
)
set
(
GNU_SSE_FLAGS
"-msse2"
)
# DOES NOT YET WORK !
set
(
ICC_SSE_FLAGS
"-xW"
)
# DOES NOT YET WORK !
endif
(
USE_SSE
)
if
(
USE_SHMEM
)
...
...
@@ -98,7 +98,13 @@ if(NOT DEFINED LOFAR_OPTIONS_INCLUDED)
endif
(
USE_SOCKETS
)
if
(
USE_THREADS
)
lofar_find_package
(
Pthreads
)
lofar_find_package
(
Pthreads REQUIRED
)
if
(
CMAKE_COMPILER_IS_GNUCC
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-pthread"
)
endif
(
CMAKE_COMPILER_IS_GNUCC
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-pthread"
)
endif
(
CMAKE_COMPILER_IS_GNUCXX
)
endif
(
USE_THREADS
)
if
(
USE_ZOID
)
...
...
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