CMake/Tests/TryCompile
Brad King 2b3eee4646 Avoid PathScale cmd-line bug in TryCompile test
The PathScale compiler silently accepts unknown options that start in
more than one '-':

  $ touch foo.c
  $ pathcc -c foo.c --junk
  $ echo $?
  0
  $ pathcc -c foo.c ---junk
  $ echo $?
  0
  $ pathcc -c foo.c -junk
  pathcc ERROR parsing -junk: unknown flag
  $ echo $?
  2

We teach the TryCompile to pass a bogus flag with only one '-' instead
of three '-'s for this compiler.
2010-01-25 08:47:32 -05:00
..
Inner No /fast targets in try_compile project mode 2009-08-04 14:37:46 -04:00
CMakeLists.txt Avoid PathScale cmd-line bug in TryCompile test 2010-01-25 08:47:32 -05:00
exit_success.c
exit_with_error.c
expect_arg.c Add more coverage and use the ARGS option of try_run 2009-10-28 23:29:13 -04:00
fail.c
pass.c