mirror of https://gitlab.com/QEF/q-e.git
Remove useless features target
This commit is contained in:
parent
f01e1e21b0
commit
bf4c480389
|
@ -44,10 +44,17 @@ option(QE_ENABLE_MPI
|
|||
option(QE_ENABLE_TEST
|
||||
"enable unit tests" ON)
|
||||
|
||||
###########################################################
|
||||
# Build Features
|
||||
# Each one of the following options boils down to a simple
|
||||
# compile definition, no additional dependencies are needed
|
||||
#
|
||||
# TODO move all feature definitions to a proper config.h
|
||||
###########################################################
|
||||
# TODO change all ifdefs throughout code base to match
|
||||
# cmake options
|
||||
# TODO symbols beginning with '__' followed by a capital
|
||||
# character are reserved for standard library use (at
|
||||
# least in C, not sure about Fortran), change all feature
|
||||
# macros to avoid weird behaviors
|
||||
option(QE_ENABLE_TRACE
|
||||
"enable execution tracing output" OFF)
|
||||
option(QE_ENABLE_MPI_INPLACE
|
||||
|
@ -55,28 +62,14 @@ option(QE_ENABLE_MPI_INPLACE
|
|||
option(QE_ENABLE_BARRIER
|
||||
"enable global synchronization between execution units" OFF)
|
||||
|
||||
###########################################################
|
||||
# Build Features
|
||||
# The following targets will be defined:
|
||||
add_library(qe_features INTERFACE)
|
||||
add_library(QE::Features ALIAS qe_features)
|
||||
###########################################################
|
||||
# TODO change all ifdefs throughout code base to match
|
||||
# cmake options
|
||||
if(QE_ENABLE_TRACE)
|
||||
set_property(TARGET qe_features
|
||||
PROPERTY
|
||||
INTERFACE_COMPILE_DEFINITIONS __TRACE)
|
||||
add_definitions(-D__TRACE)
|
||||
endif()
|
||||
if(QE_ENABLE_MPI_INPLACE)
|
||||
set_property(TARGET qe_features
|
||||
PROPERTY
|
||||
INTERFACE_COMPILE_DEFINITIONS __USE_INPLACE_MPI)
|
||||
add_definitions(-D__USE_INPLACE_MPI)
|
||||
endif()
|
||||
if(QE_ENABLE_BARRIER)
|
||||
set_property(TARGET qe_features
|
||||
PROPERTY
|
||||
INTERFACE_COMPILE_DEFINITIONS __USE_BARRIER)
|
||||
add_definitions(-D__USE_BARRIER)
|
||||
endif()
|
||||
|
||||
###########################################################
|
||||
|
|
|
@ -21,7 +21,6 @@ add_fortran_library(qe_laxlib ${sources})
|
|||
add_library(QE::LAXlib ALIAS qe_laxlib)
|
||||
target_link_libraries(qe_laxlib
|
||||
PUBLIC
|
||||
QE::Features
|
||||
QE::MPI_Fortran
|
||||
QE::LAPACK
|
||||
QE::UtilXlib)
|
||||
|
@ -37,7 +36,6 @@ if(QE_ENABLE_TEST)
|
|||
add_executable(qe_laxlib_test test.f90)
|
||||
target_link_libraries(qe_laxlib_test
|
||||
PRIVATE
|
||||
QE::Features
|
||||
QE::MPI_Fortran
|
||||
QE::LAXlib)
|
||||
add_test(NAME test-laxlib COMMAND qe_laxlib_test)
|
||||
|
|
|
@ -23,6 +23,5 @@ add_fortran_library(qe_utilxlib ${sources})
|
|||
add_library(QE::UtilXlib ALIAS qe_utilxlib)
|
||||
target_link_libraries(qe_utilxlib
|
||||
PUBLIC
|
||||
QE::Features
|
||||
QE::MPI_Fortran)
|
||||
qe_install_target(qe_utilxlib)
|
||||
|
|
Loading…
Reference in New Issue