Scripts: Simplify and fix broken CMake code
file (GLOB IN_FILES *.in)
foreach (file ${IN_FILES})
- get_filename_component (file_we ${file} NAME_WE)
- configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${file}" "${CMAKE_CURRENT_BINARY_DIR}/${file_we}")
- install (PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/${file_we}" DESTINATION ${TARGET_TOOL_EXEC_FOLDER})
+ get_filename_component (file_we "${file}" NAME_WE)
+ configure_file ("${file}" "${file_we}")
+ install (PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/${file_we}" DESTINATION "${TARGET_TOOL_EXEC_FOLDER}")
endforeach (file ${IN_FILES})
