diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d480a0ac..df42e1f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,10 @@ SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_BUILD_VERSION}" IF("${WIN32}") SET(LIBNAME openal32) + SET(TARGET_OPTS "PREFIX \"\"") ELSE() SET(LIBNAME openal) + SET(TARGET_OPTS "") ENDIF() @@ -259,7 +261,9 @@ ADD_DEFINITIONS(-DAL_BUILD_LIBRARY) # Build a shared library ADD_LIBRARY(${LIBNAME} SHARED ${OPENAL_OBJS} ${ALC_OBJS}) -SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES VERSION ${LIB_VERSION} SOVERSION ${LIB_MAJOR_VERSION}) +SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES VERSION ${LIB_VERSION} + SOVERSION ${LIB_MAJOR_VERSION} + ${TARGET_OPTS}) TARGET_LINK_LIBRARIES(${LIBNAME} ${EXTRA_LIBS}) |