forked from Kitware/CMake
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
complex: Simplify test for single-character exe name
Run the test executable as a custom command instead of depending on cmSystemTools::RunSingleCommand.
- Loading branch information
Showing
6 changed files
with
26 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// Include code from a header that should not be compiled separately. | ||
#include "A.hh" | ||
|
||
#include <stdio.h> | ||
int main() | ||
{ | ||
return A(); | ||
printf("#define A_VALUE %d\n", A()); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// Include code from a header that should not be compiled separately. | ||
#include "A.hh" | ||
|
||
#include <stdio.h> | ||
int main() | ||
{ | ||
return A(); | ||
printf("#define A_VALUE %d\n", A()); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters