diff options
author | Brad King <brad.king@kitware.com> | 2018-08-30 13:23:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-08-30 13:23:39 (GMT) |
commit | e3a521f02bc1d6353581a1a58ae88bb0a432f165 (patch) | |
tree | 9068bbb73d694053c055bdb0e556832da0c1f120 /Tests | |
parent | 0d44d48232dcc3074d55d10c483c92109534371e (diff) | |
parent | 03f22cd188c8c843ae0aceeedc15fb3655b88573 (diff) | |
download | CMake-e3a521f02bc1d6353581a1a58ae88bb0a432f165.zip CMake-e3a521f02bc1d6353581a1a58ae88bb0a432f165.tar.gz CMake-e3a521f02bc1d6353581a1a58ae88bb0a432f165.tar.bz2 |
Merge topic 'FindPackageModeMakefileTest-use-explicit-linkage'
03f22cd188 FindPackageModeMakefileTest: Explicitly use C linkage
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2328
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/FindPackageModeMakefileTest/foo.cpp | 2 | ||||
-rw-r--r-- | Tests/FindPackageModeMakefileTest/foo.h | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Tests/FindPackageModeMakefileTest/foo.cpp b/Tests/FindPackageModeMakefileTest/foo.cpp index 6aea226..7cb9381 100644 --- a/Tests/FindPackageModeMakefileTest/foo.cpp +++ b/Tests/FindPackageModeMakefileTest/foo.cpp @@ -1,3 +1,5 @@ +#include "foo.h" + int foo() { return 1477; diff --git a/Tests/FindPackageModeMakefileTest/foo.h b/Tests/FindPackageModeMakefileTest/foo.h index 4ec598a..7051eda 100644 --- a/Tests/FindPackageModeMakefileTest/foo.h +++ b/Tests/FindPackageModeMakefileTest/foo.h @@ -1,6 +1,14 @@ #ifndef FOO_H #define FOO_H +#ifdef __cplusplus +extern "C" { +#endif + int foo(); +#ifdef __cplusplus +} // extern "C" +#endif + #endif |