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 ENH: improve TRY_RUN() for crosscompiling: instead of just failing, it now 2007-06-01 11:16:29 -04:00
exit_with_error.c ENH: improve TRY_RUN() for crosscompiling: instead of just failing, it now 2007-06-01 11:16:29 -04:00
expect_arg.c Add more coverage and use the ARGS option of try_run 2009-10-28 23:29:13 -04:00
fail.c ENH: add a new test to test try compile 2003-02-10 13:19:34 -05:00
pass.c ENH: add a new test to test try compile 2003-02-10 13:19:34 -05:00