Advertisement
S4NE

Untitled

Jun 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # the name of the target operating system
  2. SET(CMAKE_SYSTEM_NAME Linux)
  3.  
  4. # which compilers to use for C and C++
  5. SET(CMAKE_C_COMPILER gcc)
  6. SET(CMAKE_C_FLAGS -m32)
  7. SET(CMAKE_CXX_COMPILER g++)
  8. SET(CMAKE_CXX_FLAGS -m32)
  9.  
  10. # here is the target environment located
  11. SET(CMAKE_FIND_ROOT_PATH /usr/i486-linux-gnu )
  12.  
  13. # adjust the default behaviour of the FIND_XXX() commands:
  14. # search headers and libraries in the target environment, search
  15. # programs in the host environment
  16. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  17. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  18. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement