![]() In both cases, CMake will not try to detect default system toolchain but will blindly use whatever you provide. This can be done both in the command line or in CMakeLists.txt before project() command: cmake. All you need to do is to put toolchain variables into a separate file (e.g.cmake) and set CMAKE_TOOLCHAIN_FILE variable to the path of that file. Second option is more elegant and is the preferred way of choosing the toolchain. In such a case you would probably want to put it into some kind of script. DCMAKE_C_COMPILER= -DCMAKE_CXX_COMPILER= -DCMAKE_AR= -DCMAKE_LINKER= etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |