I want to know how I can set the following Visual Studio build options in my CMakeLists.txt.
Struct Member Alignment = 1 Byte (/Zp1) which is set in the Project properties (Configuration Properties -> C/C++ -> Code Generation).
I want to know how I can set the following Visual Studio build options in my CMakeLists.txt.
Struct Member Alignment = 1 Byte (/Zp1) which is set in the Project properties (Configuration Properties -> C/C++ -> Code Generation).
Copyright © 2021 Jogjafile Inc.
You can set this MSVC-specific compilation flag (
/Zp) as a CMake compile option: