mirror of
https://github.com/reactos/CMake.git
synced 2025-01-07 03:30:27 +00:00
290857bb03
If CMAKE_<lang>_FLAGS contains quotes or other CMake language characters they must be escaped when written into the generated CMakeLists.txt file so that the test project parses them properly. Teach the TryCompile test to cover this case by adding a flag with quotes into CMAKE_C_FLAGS during a C language try_compile.
5 lines
89 B
C
5 lines
89 B
C
#ifndef TESTDEF
|
|
# error "TESTDEF should be defined!"
|
|
#endif
|
|
int main(void) { return 0; }
|