Fix library prefix of C# binding for Windows.
@@ -1061,6 +1061,11 @@ function (tinyspline_add_swig_library)
COMPILE_FLAGS "${TINYSPLINE_BINDING_CXX_FLAGS} ${ARGS_FLAGS}")
target_compile_definitions(${ARGS_TARGET}
PUBLIC ${TINYSPLINE_CXX_DEFINITIONS})
+ # Fix library prefix for C#.
+ if(${ARGS_LANG} STREQUAL "csharp")
+ set_property(TARGET ${ARGS_TARGET}
+ APPEND PROPERTY PREFIX "lib")
+ endif()
# Fix library prefix for Go.
if(${ARGS_LANG} STREQUAL "go")
set_property(TARGET ${ARGS_TARGET}
@@ -1068,8 +1073,7 @@ function (tinyspline_add_swig_library)
endif()
# Fix library prefix for non-windows platforms.
if(NOT ${TINYSPLINE_PLATFORM_IS_WINDOWS})
- if(${ARGS_LANG} STREQUAL "csharp"
- OR ${ARGS_LANG} STREQUAL "d")
+ if(${ARGS_LANG} STREQUAL "d")
set_property(TARGET ${ARGS_TARGET}
APPEND PROPERTY PREFIX "lib")
endif()
