Problem with CMake 3.18 and Depreciated Function (add_compiler_export_flags)
by avolutionsnc from LinuxQuestions.org on (#595NQ)
I'm trying to compile and install avidemux 2.7.4 (a video editing program) on
Slackware 14.2 using CMake 3.18. When I run the "bootStrap.bash" (a build script) in
avidemux, I get the following message:
"CMake Deprecation Warning at
/usr/local/share/cmake-3.18/Modules/GenerateExportHeader.cmake:415 (message):
The add_compiler_export_flags function is obsolete. Use the
CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties
instead.
Call Stack (most recent call first):
ADM_core/src/CMakeLists.txt:36 (add_compiler_export_flags)"
Knowing nothing about CMake (learning though), my questions are:
1. How do I set these target properties?
2. Are these changes made in the /src/CMakeList.txt files or are they
made in the "bootStrap.bash" script?
I hope I provided the neccesary information needed and thank you
for any help. If more info is needed I will provide it.Pro


Slackware 14.2 using CMake 3.18. When I run the "bootStrap.bash" (a build script) in
avidemux, I get the following message:
"CMake Deprecation Warning at
/usr/local/share/cmake-3.18/Modules/GenerateExportHeader.cmake:415 (message):
The add_compiler_export_flags function is obsolete. Use the
CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties
instead.
Call Stack (most recent call first):
ADM_core/src/CMakeLists.txt:36 (add_compiler_export_flags)"
Knowing nothing about CMake (learning though), my questions are:
1. How do I set these target properties?
2. Are these changes made in the /src/CMakeList.txt files or are they
made in the "bootStrap.bash" script?
I hope I provided the neccesary information needed and thank you
for any help. If more info is needed I will provide it.Pro