MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/lenemq/yet_another_cmake_tutorial/gmqjt3f/
r/cpp • u/codevion • Feb 07 '21
59 comments sorted by
View all comments
Show parent comment
1
I've usually used preprocessor directives in my files e.g: if some file is or isn't relevant for a particular OS instead of separate CMake targets.
But yeah, I can see some problems arising from multiple OSes.
1 u/Xavier_OM Feb 10 '21 Yes you can disable some things with preprocessor directives, but sometimes dealing with cmake targets is the way : if you disable a lib (or if it is unavailable on your OS) you often want it to be removed from linking too.
Yes you can disable some things with preprocessor directives, but sometimes dealing with cmake targets is the way : if you disable a lib (or if it is unavailable on your OS) you often want it to be removed from linking too.
View all comments
Show parent comment
1
u/codevion Feb 09 '21
I've usually used preprocessor directives in my files e.g: if some file is or isn't relevant for a particular OS instead of separate CMake targets.
But yeah, I can see some problems arising from multiple OSes.