1. 18 Apr, 2018 1 commit
    • Brad King's avatar
      CheckIncludeFiles: Honor CMAKE_REQUIRED_LIBRARIES · a61ae3fb
      Brad King authored
      Other check modules honor this variable, so include file checks should
      too.  Add policy `CMP0075` to enable the behavior in a compatible way.
      
      This change was originally made by commit v3.11.0-rc1~108^2
      (CheckIncludeFiles: Honor CMAKE_REQUIRED_LIBRARIES, 2017-12-24) but it
      was reverted by commit v3.11.1~9^2 (Revert "CheckIncludeFiles: Honor
      CMAKE_REQUIRED_LIBRARIES", 2018-04-04) because the behavior change could
      affect checks in existing projects in an incompatible way.
      
      Fixes: #9514
      a61ae3fb
  2. 24 Nov, 2017 1 commit
  3. 11 Nov, 2017 1 commit
  4. 31 Dec, 2014 1 commit
    • Stephen Kelly's avatar
      RunCMake: Expect empty output by default. · 73ae8885
      Stephen Kelly authored
      Expect tests to specify stderr content if it is present.
      
      Fix the CMP0019 test, which has only been testing the WARN status
      until now.  Specify in the CommandLine and FPHSA tests that content
      is at least one character.
      
      Set policies in the Language and CheckModules tests, which have empty
      test output, modulo unrelated policies on some platforms.
      73ae8885
  5. 17 Mar, 2014 1 commit
  6. 06 Feb, 2014 1 commit
    • Brad King's avatar
      Tests: Speed up RunCMake.CheckModules test · 78be3247
      Brad King authored
      Enable the C and CXX languages only in the test cases that really need
      them.  In the failure cases we do not get far enough to really use the
      languages, so skip enabling them.
      78be3247
  7. 21 Oct, 2013 1 commit
  8. 08 Oct, 2013 1 commit
    • Daniele E. Domenichelli's avatar
      CheckStructHasMember: Add support for C++ · 73d28d21
      Daniele E. Domenichelli authored
      Previously if headers required to check if a struct has a member can be
      compiled with C++ compiler only, the check would fail because the C
      compiler fails.  As a consequence, the result variable would be set to
      false, even if the struct has that particular member.
      
      Teach CHECK_STRUCT_HAS_MEMBER to accept a new optional argument LANGUAGE
      that allows one to explicitly set the compiler to use.  The new
      signature is therefore:
      
        CHECK_STRUCT_HAS_MEMBER (<struct> <member> <header> <variable>
                                 [LANGUAGE <language>])
      73d28d21