Fixed CMake UNIX config when building only "freeglut_static" or only the shared library

- was setting a property on "freeglut" while "FREEGLUT_BUILD_SHARED_LIBS" was "OFF"
This commit is contained in:
Sébastien Rombauts 2014-01-17 20:09:15 +01:00
parent 0b67500f5d
commit 5e24b99214

View File

@ -349,8 +349,12 @@ ELSE()
SET(LIBNAME glut) SET(LIBNAME glut)
ENDIF() ENDIF()
IF(FREEGLUT_BUILD_SHARED_LIBS)
SET_TARGET_PROPERTIES(freeglut PROPERTIES VERSION 3.9.0 SOVERSION 3 OUTPUT_NAME ${LIBNAME}) SET_TARGET_PROPERTIES(freeglut PROPERTIES VERSION 3.9.0 SOVERSION 3 OUTPUT_NAME ${LIBNAME})
ENDIF()
IF(FREEGLUT_BUILD_STATIC_LIBS)
SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME}) SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
ENDIF()
IF(ANDROID) IF(ANDROID)
# Not in CMake toolchain file, because the toolchain # Not in CMake toolchain file, because the toolchain
# file is called several times and generally doesn't # file is called several times and generally doesn't