Menu

#33 Patch for WITH_STATIC_LIBRARY option

Unknown
closed-accepted
nobody
None
5
2014-07-24
2014-05-27
No

I'm using Cmake to build on Windows (MSVC) and Linux (gcc). In Linux the defaults appear to build both shared and static libraries. In Windows it appears that you need to enable the option WITH_STATIC_LIBRARY to get a static library. If you enable this option on Linux, you'll get linking errors (undefined symbol log10, pow, etc) from a missing math library.

This small patch adds the existing MATH_LIB to the CGREEN_STATIC_LIBRARY, and works for both Linux (64 bit) and Windows. Tested against revision 553 of Cgreen trunk.

1 Attachments

Discussion

  • Thomas Nilefalk

    Thomas Nilefalk - 2014-07-24
    • status: open --> closed-accepted
     
  • Thomas Nilefalk

    Thomas Nilefalk - 2014-07-24

    Added to r557

     

Log in to post a comment.

MongoDB Logo MongoDB