Commit 84d5ddec authored by PRUVOST Florent's avatar PRUVOST Florent

remove definitions from pkg-config that are useless for users

parent 063a26f3
......@@ -1074,8 +1074,6 @@ if(CHAMELEON_ENABLE_DOCS)
endif()
#------------------------------------------------------------------------------
get_directory_property( CHAMELEON_DEFINITIONS_LIST DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS )
###############################################################################
# Config files (pkg_config) #
#############################
......
......@@ -80,28 +80,10 @@ ENDMACRO(CLEAN_LIB_LIST)
###
MACRO(GENERATE_PKGCONFIG_FILE)
# The definitions
# DEFINITIONS_LIST contains a cmake style list, e.g.: USE_FLAG1;USE_FLAG2;USE_FLAG3
# transform the cmake list to get a correct definitions list for pkg-config
string(REGEX REPLACE ";" " -D" CHAMELEON_PKGCONFIG_DEFINITIONS "${CHAMELEON_DEFINITIONS_LIST}")
string(REGEX REPLACE ";" " -D" COREBLAS_PKGCONFIG_DEFINITIONS "${COREBLAS_DEFINITIONS_LIST}")
string(REGEX REPLACE ";" " -D" CUDABLAS_PKGCONFIG_DEFINITIONS "${CUDABLAS_DEFINITIONS_LIST}")
if (CHAMELEON_PKGCONFIG_DEFINITIONS)
set(CHAMELEON_PKGCONFIG_DEFINITIONS "-D${CHAMELEON_PKGCONFIG_DEFINITIONS}")
else()
set(CHAMELEON_PKGCONFIG_DEFINITIONS "")
endif()
if (COREBLAS_PKGCONFIG_DEFINITIONS)
set(COREBLAS_PKGCONFIG_DEFINITIONS "-D${COREBLAS_PKGCONFIG_DEFINITIONS}")
else()
set(COREBLAS_PKGCONFIG_DEFINITIONS "")
endif()
if (CUDABLAS_PKGCONFIG_DEFINITIONS)
set(CUDABLAS_PKGCONFIG_DEFINITIONS "-D${CUDABLAS_PKGCONFIG_DEFINITIONS}")
else()
set(CUDABLAS_PKGCONFIG_DEFINITIONS "")
endif()
# The definitions that should be given to users (change the API)
set(CHAMELEON_PKGCONFIG_DEFINITIONS "")
set(COREBLAS_PKGCONFIG_DEFINITIONS "")
set(CUDABLAS_PKGCONFIG_DEFINITIONS "")
# The link flags specific to this package and any required libraries
# that don't support PkgConfig
......
......@@ -68,10 +68,6 @@ foreach (_dep ${CHAMELEON_DEP})
set(dep_message "${dep_message}"
" ${_dep}\n")
endforeach ()
string(REGEX REPLACE ";" " " CHAMELEON_DEFINITIONS_LIST "${CHAMELEON_DEFINITIONS_LIST}")
set(dep_message "${dep_message}"
"\n"
" Definitions: ${CHAMELEON_DEFINITIONS_LIST}\n")
set(dep_message "${dep_message}"
"\n"
" INSTALL_PREFIX ......: ${CMAKE_INSTALL_PREFIX}\n\n")
......
......@@ -32,8 +32,6 @@ if (NOT CHAMELEON_SIMULATION)
add_subdirectory(eztrace_module)
endif()
get_directory_property( COREBLAS_DEFINITIONS_LIST DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS )
###
### END CMakeLists.txt
###
......@@ -32,8 +32,6 @@ if (NOT CHAMELEON_SIMULATION)
add_subdirectory(eztrace_module)
endif()
get_directory_property( CUDABLAS_DEFINITIONS_LIST DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS )
###
### END CMakeLists.txt
###
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment