cmake-format

Cannot generate 32 bit configuration for Visual Studio 2019 with host=x86 or -A Win32

谁都会走 提交于 2020-07-22 06:13:11
问题 I am trying to configure cmake to build for 32bit and 64bit separately... So far 64bit is easy as I just need to add -A x64 cmake -G "Visual Studio 16 2019" -A x64 But I am not able to set 32bit arch. Official documentation suggest -A Win32 or -T host=x86 https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2016%202019.html Even with them I am not able to set x86 host What I have tried: cmake -G "Visual Studio 16 2019" -DCMAKE_GENERATOR_PLATFORM=x86 cmake -G "Visual Studio 16 2019"

Is there any utility that can reformat a cmake file

主宰稳场 提交于 2020-01-02 02:03:09
问题 I have relatively complex cmake files and I am wondering if there is any utility that can reformat a cmakeList.txt and beautify it for easier reading? Some simple tricks would do the jobs, such as indenting if else endif sections and so on. Is there any such tools? I am using notepad++ for editing, but if there is any other tools, I can switch. 回答1: Take a look at Atom and its plugin language-cmake (you can install easily with Atom package manager). Once both are installed, open your

Is there any utility that can reformat a cmake file

删除回忆录丶 提交于 2019-12-05 03:51:32
I have relatively complex cmake files and I am wondering if there is any utility that can reformat a cmakeList.txt and beautify it for easier reading? Some simple tricks would do the jobs, such as indenting if else endif sections and so on. Is there any such tools? I am using notepad++ for editing, but if there is any other tools, I can switch. Take a look at Atom and its plugin language-cmake (you can install easily with Atom package manager). Once both are installed, open your CMakeLists.txt and go to Edit > Lines > Auto Indent . Someone recently wrote a CMake autoformatter called cmake