<div dir="ltr">Hi,<div><br></div><div>Is there a simple way to get a Visual Studio + assembly project on windows?</div><div><br></div><div>This seems to work on Linux:</div><div><br></div><div><div>cmake_minimum_required(VERSION 3.7)</div><div>project(assembler C ASM)</div><div>set_source_files_properties(hello.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp")</div><div>add_executable(hello hello.s)</div></div><div><br></div><div>What would be the windows version of the above?</div><div><br></div><div>If I naively try the code above on Windows I get the following output:</div><div><br></div><div><div>-- Building for: Visual Studio 15 2017</div><div>-- The C compiler identification is MSVC 19.10.25017.0</div><div>-- The ASM compiler identification is MSVC</div><div>-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe</div><div>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe</div><div>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works</div><div>-- Detecting C compiler ABI info</div><div>-- Detecting C compiler ABI info - done</div><div>-- Warning: Did not find file Compiler/MSVC-ASM</div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: C:/Users/Mac/test/cmake/build</div></div><div><br></div><div>and build fails</div><div><br></div><div>Thanks!</div><div>Mac</div></div>