aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-20 21:48:17 -0800
committerChris Robinson <[email protected]>2007-12-20 21:48:17 -0800
commit229bc0d7e14f2671b420ea995101fc38523285d2 (patch)
tree0217bc2b4fc04ae0fb445b6bc456b52745396737 /CMakeLists.txt
parent7bf9ebf5450840c20d2453fcf7fc1f1b37f979ec (diff)
parent5b0514a829afcdca201096f8f1c38ab684d45b49 (diff)
Merge branch 'master' into efx-experiment
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
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})