diff options
author | Chris Robinson <[email protected]> | 2008-09-16 07:43:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-09-16 07:43:38 -0700 |
commit | 5bbf55a401a6460a833eec841b29682104e0b1e6 (patch) | |
tree | 69a042e93d63efd98c77aa978d8cb8fe3a6def02 | |
parent | 4a530e2146bdc007a54eb50bac07c9adefee3412 (diff) |
Add a variable to override the default library type with
-rw-r--r-- | CMakeLists.txt | 7 |
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) |