Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

CheckTypeExists.cmake 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  1. #
  2. # $Id$
  3. #
  4. # - Check if the given struct or class has the specified member variable
  5. # CHECK_STRUCT_MEMBER (STRUCT MEMBER HEADER VARIABLE)
  6. #
  7. # STRUCT - the name of the struct or class you are interested in
  8. # MEMBER - the member which existence you want to check
  9. # HEADER - the header(s) where the prototype should be declared
  10. # VARIABLE - variable to store the result
  11. #
  12. # The following variables may be set before calling this macro to
  13. # modify the way the check is run:
  14. #
  15. # CMAKE_REQUIRED_FLAGS = string of compile command line flags
  16. # CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  17. # CMAKE_REQUIRED_INCLUDES = list of include directories
  18. # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
  19. #
  20. # Redistribution and use is allowed according to the terms of the BSD license.
  21. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
  22. INCLUDE(CheckTypeSize)
  23. MACRO (CHECK_TYPE_EXISTS _TYPE _HEADER _RESULT)
  24. SET(CMAKE_EXTRA_INCLUDE_FILES ${_HEADER})
  25. CHECK_TYPE_SIZE(${_TYPE} ${_RESULT})
  26. ENDMACRO (CHECK_TYPE_EXISTS)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...