cmake: Fix extract_symbols COPY_TO

Moved the symbols list formatting to the ExtractSymbols.cmake.  The
resulting list of symbols is sorted and printed in a more readable way
(one symbol per line).  Fixed the script to copy the generated symbols.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit ca925588b0)
This commit is contained in:
Anderson Toshiyuki Sasaki
2018-08-28 18:27:47 +02:00
committed by Andreas Schneider
parent 3d0f2977bf
commit 4d8e2cdc8b
2 changed files with 18 additions and 7 deletions

View File

@@ -85,4 +85,8 @@ endforeach()
list(REMOVE_DUPLICATES symbols)
file(WRITE ${OUTPUT_PATH} "${symbols}")
list(SORT symbols)
string(REPLACE ";" "\n" symbols_list "${symbols}")
file(WRITE ${OUTPUT_PATH} "${symbols_list}")