How to use cmake with a completely unknown compiler?

  Kiến thức lập trình

I’m working with a completely new compiler for cmake with abnormal options. I’m confused about how to fully custom compiler rules for cmake.

I have known several rules such as CMAKE_C_COMPILE_OBJECT, CMAKE_C_LINK_EXECUTABLE and so on. I have also known that CMAKE_INCLUDE_FLAG_<LANG> can custom compiler include options, and CMAKE_<LANG>_DEFINE_FLAG can custom compiler marco define options. Even I have customed my own rules for simple C/C++ compiling and linking, and everything went well until I custom the Fortran preprocess rule : CMAKE_Fortran_PREPROCESS_SOURCE. The component <PREPROCESSED_SOURCE> by default uses a suffix “-pp.for” which is unacceptable for my compiler since the “-“. How to custom this suffix?

3

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT