Change library extension?

Is there a way to change the extension of the shared library, only on windows from ".dll" to something else?

add_library(mylib SHARED <src>)

So, instead of creating the mylib.dll file, I need it to be something like mylib.dla.

+4
source share
1 answer

Set the target property SUFFIX, i.e.:

add_library(mylib SHARED <src>)
set_target_properties(mylib PROPERTIES SUFFIX ".dla")
+10
source

All Articles