0

I am trying to compile a source code with the help of Cmake, I can successfully compile it but I have a lot of warnings like:

"Warning: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)"

The program compiles but does not work correctly, after digging into the issue for a while I read somewhere that I should redefine CPP in the make.inc with CPP = GCC -E

I would like to configure with CMake, how could I change that in CMake?

Okano
  • 150
  • 1
  • 6
  • `if (CMAKE_CXX_COMPILER_ID STREQUAL GNU) add_compile_option(-E) endif()` or preferably the same, but restricted to the target in question, but this will very likely result in unexpected behavior, since the compiler probably won't produce the expected output. – fabian Aug 16 '21 at 17:30

0 Answers0