Ignore:
Timestamp:
10/05/14 21:31:05 (10 years ago)
Author:
r2d
Message:

If BUILD_SHARED_LIBS is set and SHARED undefined, then drive SHARED with
the BUILD_SHARED_LIBS value.
patch by Samuel Martin <s.martin49@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/CMakeLists.txt

    r482 r485  
    88TEST_BIG_ENDIAN(MPC_ENDIANNESS)
    99
    10 if(WIN32)
    11   option(SHARED "Use shared libmpcdec" OFF)
    12 else(WIN32)
    13   option(SHARED "Use shared libmpcdec" ON)
    14 endif(WIN32)
     10# Use the standard CMake flag to drive the shared object build.
     11if(DEFINED BUILD_SHARED_LIBS AND NOT DEFINED SHARED)
     12  set(SHARED ${BUILD_SHARED_LIBS})
     13else()
     14  if(WIN32)
     15    option(SHARED "Use shared libmpcdec" OFF)
     16  else(WIN32)
     17    option(SHARED "Use shared libmpcdec" ON)
     18  endif(WIN32)
     19endif()
    1520
    1621add_definitions(-DFAST_MATH -DCVD_FASTLOG)
Note: See TracChangeset for help on using the changeset viewer.