Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Extension of Library?

Tags:

cmake

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

add_library(mylib SHARED <src>)

So instead of creating a mylib.dll file i need it to be something else like mylib.dla.

like image 493
user3901459 Avatar asked Oct 04 '14 20:10

user3901459


1 Answers

Set the target's SUFFIX property, i.e.:

add_library(mylib SHARED <src>)
set_target_properties(mylib PROPERTIES SUFFIX ".dla")
like image 57
sakra Avatar answered Nov 27 '22 09:11

sakra