Generic.cmake 827 B

1234567891011121314151617
  1. # This is a platform definition file for platforms without
  2. # operating system, typically embedded platforms.
  3. # It is used when CMAKE_SYSTEM_NAME is set to "Generic"
  4. #
  5. # It is intentionally empty, since nothing is known
  6. # about the platform. So everything has to be specified
  7. # in the system/compiler files ${CMAKE_SYSTEM_NAME}-<compiler_basename>.cmake
  8. # and/or ${CMAKE_SYSTEM_NAME}-<compiler_basename>-${CMAKE_SYSTEM_PROCESSOR}.cmake
  9. # (embedded) targets without operating system usually don't support shared libraries
  10. set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
  11. # To help the find_xxx() commands, set at least the following so CMAKE_FIND_ROOT_PATH
  12. # works at least for some simple cases:
  13. set(CMAKE_SYSTEM_INCLUDE_PATH /include )
  14. set(CMAKE_SYSTEM_LIBRARY_PATH /lib )
  15. set(CMAKE_SYSTEM_PROGRAM_PATH /bin )