The Intel C/C++ has a bunch of custom flags, some of which mix compilation and linking, (such as -qopenmp
), and others are just idiosyncratic alternative forms (such as -ipp
for linking with Intel's ipp libraries).
I can add such flags "manually" to the compiler flags, and ignore the fact they may have linking implications; or add them both to the compilation and linking flags. But both of these alternatives seem "off". How do I properly work with the various ICC-specific flags in CMake?