TODO 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. HP cc is used to link execuables
  2. ld is used to link shared libraries built with c, the rpath is shared
  3. if ld, you have to remove the -Wl,+b and just have a +b
  4. CMAKE_CXX_FLAGS are used to link executables
  5. Variables:
  6. CMAKE_SYSTEM
  7. CMAKE_BUILD_TOOL borlandmake make nmake msdev devenv
  8. CMAKE_MAKE_PROGRAM make nmake msdev devenv *** HAS TO BE IN CACHE for try compile to work
  9. CMAKE_BUILD_TYPE Debug Release RelWithDebInfo MinSizeRel
  10. BUILD_COMMAND needs to be removed
  11. CMAKE_ANSI_CFLAGS
  12. CMAKE_ANSI_CXXFLAGS
  13. CMAKE_NO_ANSI_STRING_STREAM
  14. CMAKE_NO_STD_NAMESPACE
  15. CMAKE_NO_ANSI_FOR_SCOPE
  16. CMAKE_COMPILER_IS_GNUCXX
  17. CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION
  18. CMAKE_CXX_FLAGS
  19. CMAKE_CXX_FLAGS_DEBUG
  20. CMAKE_CXX_FLAGS_MINSIZEREL
  21. CMAKE_CXX_FLAGS_RELEASE
  22. CMAKE_CXX_FLAGS_RELWITHDEBINFO
  23. CMAKE_C_FLAGS
  24. CMAKE_C_FLAGS_DEBUG
  25. CMAKE_C_FLAGS_MINSIZEREL
  26. CMAKE_C_FLAGS_RELEASE
  27. CMAKE_C_FLAGS_RELWITHDEBINFO
  28. CMAKE_CXX_LINK_DEBUG_FLAGS
  29. CMAKE_CXX_LINK_RELEASE_FLAGS
  30. CMAKE_CXX_LINK_RELWITHDEBINFO_FLAGS
  31. CMAKE_CXX_LINK_MINSIZEREL_FLAGS
  32. CMAKE_C_LINK_DEBUG_FLAGS
  33. CMAKE_C_LINK_RELEASE_FLAGS
  34. CMAKE_C_LINK_RELWITHDEBINFO_FLAGS
  35. CMAKE_C_LINK_MINSIZEREL_FLAGS
  36. CMAKE_USE_WIN32_THREADS
  37. CMAKE_USE_SPROC
  38. CMAKE_USE_PTHREADS
  39. CMAKE_HP_PTHREADS
  40. CMAKE_THREAD_LIBS
  41. CMAKE_DL_LIBS
  42. CMAKE_X_LIBS
  43. CMAKE_X_CFLAGS
  44. CMAKE_HAS_X
  45. # executable linker flags
  46. SET (CMAKE_EXE_LINKER_FLAGS "/nologo /STACK:10000000 /machine:I386 /INCREMENTAL:YES"
  47. CACHE STRING "Flags used by the linker.")
  48. SET (CMAKE_EXE_LINKER_FLAGS_DEBUG "/debug /pdbtype:sept" CACHE STRING
  49. "Flags used by the linker during debug builds.")
  50. SET (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "" CACHE STRING
  51. "Flags used by the linker during release minsize builds.")
  52. SET (CMAKE_EXE_LINKER_FLAGS_RELEASE "" CACHE STRING
  53. "Flags used by the linker during release builds.")
  54. SET (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "/debug /pdbtype:sept" CACHE STRING
  55. "Flags used by the linker during Release with Debug Info builds.")
  56. # shared linker flags
  57. SET (CMAKE_SHARED_LINKER_FLAGS "/nologo /STACK:10000000 /machine:I386 /INCREMENTAL:YES"
  58. CACHE STRING "Flags used by the linker.")
  59. SET (CMAKE_SHARED_LINKER_FLAGS_DEBUG "/debug /pdbtype:sept" CACHE STRING
  60. "Flags used by the linker during debug builds.")
  61. SET (CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "" CACHE STRING
  62. "Flags used by the linker during release minsize builds.")
  63. SET (CMAKE_SHARED_LINKER_FLAGS_RELEASE "" CACHE STRING
  64. "Flags used by the linker during release builds.")
  65. SET (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "/debug /pdbtype:sept" CACHE STRING
  66. "Flags used by the linker during Release with Debug Info builds.")
  67. # module linker flags
  68. SET (CMAKE_MODULE_LINKER_FLAGS "/nologo /STACK:10000000 /machine:I386 /INCREMENTAL:YES"
  69. CACHE STRING "Flags used by the linker.")
  70. SET (CMAKE_MODULE_LINKER_FLAGS_DEBUG "/debug /pdbtype:sept" CACHE STRING
  71. "Flags used by the linker during debug builds.")
  72. SET (CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL "" CACHE STRING
  73. "Flags used by the linker during release minsize builds.")
  74. SET (CMAKE_MODULE_LINKER_FLAGS_RELEASE "" CACHE STRING
  75. "Flags used by the linker during release builds.")
  76. SET (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO "/debug /pdbtype:sept" CACHE STRING
  77. "Flags used by the linker during Release with Debug Info builds.")