https://github.com/Kitware/CMake
Raw File
Tip revision: a8bd06dfd47a56e09e660de5e58f26579105d2d4 authored by Brad King on 25 May 2022, 13:42:51 UTC
CMake 3.23.2
Tip revision: a8bd06d
pic_test.h

#if defined(__ELF__)
#  if !defined(__PIC__) && !defined(__PIE__)
#    error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ or __PIE__ to be defined on ELF platforms."
#  endif
#endif

#if defined(PIC_TEST_STATIC_BUILD)
#  define PIC_TEST_EXPORT
#else
#  if defined(_WIN32) || defined(WIN32) /* Win32 version */
#    ifdef PIC_TEST_BUILD_DLL
#      define PIC_TEST_EXPORT __declspec(dllexport)
#    else
#      define PIC_TEST_EXPORT __declspec(dllimport)
#    endif
#  else
#    define PIC_TEST_EXPORT
#  endif
#endif
back to top