aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-23 16:27:05 -0800
committerChris Robinson <[email protected]>2007-12-23 16:27:05 -0800
commita48201ed94225ab103164b7a95946c1e6a586e69 (patch)
tree9c1487742cc1aeb206edb0ca4c2f3efba1f5f10d /CMakeLists.txt
parente516b3c0d317f2cceb5de6690705bfc6ff69f615 (diff)
Fix target opts to remove prefix on the win32 dll
CMake didn't like the previous attempt
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 10 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea296b72..5f107e5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,15 +33,6 @@ SET(LIB_BUILD_VERSION "38")
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()
-
-
CHECK_TYPE_SIZE("long" SIZEOF_LONG)
CHECK_TYPE_SIZE("long long" SIZEOF_LONG_LONG)
CHECK_TYPE_SIZE("unsigned int" SIZEOF_UINT)
@@ -267,10 +258,18 @@ CONFIGURE_FILE(
ADD_DEFINITIONS(-DAL_BUILD_LIBRARY)
# Build a shared library
+IF("${WIN32}")
+ SET(LIBNAME openal32)
+ELSE()
+ SET(LIBNAME openal)
+ENDIF()
+
ADD_LIBRARY(${LIBNAME} SHARED ${OPENAL_OBJS} ${ALC_OBJS})
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES VERSION ${LIB_VERSION}
- SOVERSION ${LIB_MAJOR_VERSION}
- ${TARGET_OPTS})
+ SOVERSION ${LIB_MAJOR_VERSION})
+IF("${WIN32}")
+ SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "")
+ENDIF()
TARGET_LINK_LIBRARIES(${LIBNAME} ${EXTRA_LIBS})