'Is it possible to force Compile-Only with CMake?

I've got a very huge project (~180 libs, ~1Mio LOC, CMake but exclusively developed with VS2017 + permissive, ~30 third-parties) that needs to get ported to Linux

i know that there will be many C++ Syntax and Linker-Dependency Problems - missing typenames, includes, Platform differences etc. - i've done such porting several times but not on this scale

is it possible to force some sort of Compile-Only so i can firstly focus on syntax problems and then going over to the linker problems?

i found serveral Tricks&Tips but they do not work very good on that project scale - i don't want to change every CMakeLists.txt if possible

any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source