aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-09-16 07:43:38 -0700
committerChris Robinson <[email protected]>2008-09-16 07:43:38 -0700
commit5bbf55a401a6460a833eec841b29682104e0b1e6 (patch)
tree69a042e93d63efd98c77aa978d8cb8fe3a6def02 /CMakeLists.txt
parent4a530e2146bdc007a54eb50bac07c9adefee3412 (diff)
Add a variable to override the default library type with
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2afea99..9d5f2e59 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -333,8 +333,11 @@ CONFIGURE_FILE(
ADD_DEFINITIONS(-DAL_BUILD_LIBRARY)
-# Build a shared library
-ADD_LIBRARY(${LIBNAME} SHARED ${OPENAL_OBJS} ${ALC_OBJS})
+# Build a library
+IF(NOT LIBTYPE)
+ SET(LIBTYPE SHARED)
+ENDIF()
+ADD_LIBRARY(${LIBNAME} ${LIBTYPE} ${OPENAL_OBJS} ${ALC_OBJS})
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES VERSION ${LIB_VERSION}
SOVERSION ${LIB_MAJOR_VERSION})
IF(WIN32)