How to not append an extension to OUTPUT_NAME automatically?

Example:

add_library(node-sapnwrfc SHARED ${Sources} ${CMAKE_JS_SRC})
...
set_target_properties(node-sapnwrfc PROPERTIES
        OUTPUT_NAME sapnwrfc
        PREFIX ""
        SUFFIX .node)

Produces “sapnwrfc.node” on all platforms.

1 Like