Skip to content

Commit

Permalink
systemtests: remove unneeded configure messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Nov 11, 2019
1 parent 73912b9 commit e8ab2d0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions systemtests/CMakeLists.txt
Expand Up @@ -25,21 +25,16 @@ cmake_policy(SET CMP0057 NEW) #IF(.. IN_LIST ..)
function(ConfigureFilesToSystemtest srcbasedir dirname globexpression configure_option srcdirname)
if (srcdirname STREQUAL "")
set(srcdirname "${dirname}" )
message ("srcdirname empty setting to ${dirname}")
else()
message ("srcdirname given as ${srcdirname}, using it as sourcedir")
endif()
message ("srcdirname is ${srcdirname}")
set(count 1)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/${dirname})
file(GLOB_RECURSE ALL_FILES "${CMAKE_SOURCE_DIR}/${srcbasedir}/${srcdirname}/${globexpression}")
MESSAGE(STATUS "globbing in ${CMAKE_SOURCE_DIR}/${srcbasedir}/${srcdirname}/${globexpression}" )
foreach(CURRENT_FILE ${ALL_FILES})
MATH(EXPR COUNT "${COUNT}+1")
string(REPLACE "${CMAKE_SOURCE_DIR}/" "" TARGET_FILE ${CURRENT_FILE})
string(REGEX REPLACE ".in$" "" TARGET_FILE ${TARGET_FILE}) # do not mess with .ini files
string(REPLACE "${srcbasedir}/${srcdirname}" "" TARGET_FILE ${TARGET_FILE})
MESSAGE(STATUS "configuring ${TARGET_FILE}" )
#MESSAGE(STATUS "configuring ${TARGET_FILE}" )
configure_file(${CURRENT_FILE} ${PROJECT_BINARY_DIR}/${dirname}/${TARGET_FILE} ${configure_option})
endforeach()
MESSAGE(STATUS "Configured ${COUNT} files from ${srcbasedir}/${srcdirname} to ${dirname} with glob ${globexpression} ${configure_option}" )
Expand Down

0 comments on commit e8ab2d0

Please sign in to comment.