[pdal-commits] [PDAL/PDAL] 97fc15: Define gtest_force_shared_crt for MSVC

GitHub noreply at github.com
Wed Feb 17 06:43:16 PST 2016


  Branch: refs/heads/master
  Home:   https://github.com/PDAL/PDAL
  Commit: 97fc159ef5f0b9236e1bad378eacff2a4064abdb
      https://github.com/PDAL/PDAL/commit/97fc159ef5f0b9236e1bad378eacff2a4064abdb
  Author: Mateusz Łoskot <mateusz at loskot.net>
  Date:   2016-02-17 (Wed, 17 Feb 2016)

  Changed paths:
    M CMakeLists.txt

  Log Message:
  -----------
  Define gtest_force_shared_crt for MSVC

Since tests link CRT dynamically (Visual C++ projects default),
we need to require gtest to link dynamically too.
Otherwise, tests fail to build due to linker error:
LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug'


  Commit: 476ff90bbe6503b9711547dccf1036a8dfa7c5bb
      https://github.com/PDAL/PDAL/commit/476ff90bbe6503b9711547dccf1036a8dfa7c5bb
  Author: Howard Butler <howard at hobu.co>
  Date:   2016-02-17 (Wed, 17 Feb 2016)

  Changed paths:
    M CMakeLists.txt

  Log Message:
  -----------
  Merge pull request #1127 from mloskot/ml/msvc-fix-gtest-linking

Define gtest_force_shared_crt for MSVC


Compare: https://github.com/PDAL/PDAL/compare/9b764ff0f27a...476ff90bbe65


More information about the pdal-commits mailing list