From ef92c6345597a2ebf0a47cae6e0bb7b38497e213 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 22 Mar 2010 23:09:04 -0700 Subject: Define AL_BUILD_LIBRARY only when building the lib --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 02b8aa58..decc2542 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -437,14 +437,13 @@ CONFIGURE_FILE( "${OpenAL_BINARY_DIR}/openal.pc" @ONLY) -ADD_DEFINITIONS(-DAL_BUILD_LIBRARY) - # 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} +SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES DEFINE_SYMBOL AL_BUILD_LIBRARY + VERSION ${LIB_VERSION} SOVERSION ${LIB_MAJOR_VERSION}) IF(WIN32) SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "") -- cgit v1.2.3