The solution was to append -G "MinGW Makefiles"
to cmake -S . -B Build
command. As Tsyvarev suggested I looked more into generators and found out that setting the flags doesn’t imply which generator will be used. So manually setting the flags solved the problem for me.
More Related Contents:
- What is the default generator for CMake in Windows?
- How to link to the C math library with CMake?
- CMake cross-compiling: C flags from toolchain file ignored
- How to build x86 and/or x64 on Windows from command line with CMAKE?
- How to compile an MPI included c program using cmake
- How to copy directory from source tree to binary tree?
- How to migrate this Make and Autotools project with multiple source subdirectories to CMake?
- inlining failed in call to always_inline ‘_mm_mullo_epi32’: target specific option mismatch
- Comparing two memory addresses and showing them equal
- How to generate numbers upto 18 digits, sum of whose reciprocals is a whole number [closed]
- What is the use extra curly brackets in the code? What does it do?
- How do you determine the size of a file in C?
- What function is to replace a substring from a string in C?
- Is the strrev() function not available in Linux?
- Right shifting negative numbers in C
- What is the equivalent to Posix popen() in the Win32 API?
- Is it possible to modify a string of char in C?
- Signal EOF in mac osx terminal
- What operations and functions on +0.0 and -0.0 give different arithmetic results?
- Wake up thread blocked on accept() call
- What is the difference between C, C99, ANSI C and GNU C?
- How can I tell if a library was compiled with -g?
- Why doesn’t ANSI C have namespaces?
- Can a pointer (address) ever be negative?
- How to print both to stdout and file in C
- problems in floating point comparison [duplicate]
- Operator precedence table for the C programming language
- Why can’t I treat an array like a pointer in C?
- Trouble with float on C [duplicate]
- CMake imported library behaviour