Re: [CMake] How to do platform specific setup?

2017-07-26 Thread Robert Dailey
According to Brad King, toolchain files are not intended for what I'm asking about. I recall someone mentioning some built-in modules in CMake that are responsible for toolchain and platform setup, that can be overridden somehow. This is different from toolchain files AFAIK. I apologize for being

Re: [CMake] How to do platform specific setup?

2017-07-26 Thread Mario Werner
Hi Robert, I usually do all my platform and compiler specific customization in a toolchain file [1]. Such a toolchain file is more or less standard CMake script which get executed before the root CMakeLists.txt from the project is processed. When invoking cmake for the first time you simply