Haskell: Use CMake variable for library suffix
@@ -8,12 +8,7 @@ if (NOT BUILD_STATIC)
set (BINDING_HASKELL_NAME "${CMAKE_CURRENT_BINARY_DIR}/libHSlibelektra-haskell")
if (BUILD_SHARED OR BUILD_FULL)
set (GHC_DYNAMIC_SUFFIX "-ghc${GHC_VERSION}")
- if (APPLE)
- set (GHC_DYNAMIC_ENDING ".dylib")
- else (APPLE)
- set (GHC_DYNAMIC_ENDING ".so")
- endif (APPLE)
- set (BINDING_HASKELL_NAME "${BINDING_HASKELL_NAME}${GHC_DYNAMIC_SUFFIX}${GHC_DYNAMIC_ENDING}")
+ set (BINDING_HASKELL_NAME "${BINDING_HASKELL_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}${GHC_DYNAMIC_ENDING}")
set (CABAL_OPTS "--enable-shared")
if (BUILD_SHARED)
set (ELEKTRA_DEPENDENCY "elektra;elektra-kdb;elektra-ease;")
