CMake/Tests/ExportImport
Brad King 4fc4742477 Tests: Fix ExportImport on AIX with GCC
The iface_test_bld gets the excludedFromAll include directory with
"-isystem" because it is added indirectly through an imported target.
On AIX with GCC the -isystem flag causes sources to be preprocessed as:

  # 3 "/.../excludedFromAll.h" 2 3 4

The flags after the file name are documented here:

  https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html

and the "4" flag says that following content is extern "C".  This
causes the excludedFromAll function to be declared as a C symbol
and not mangled for C++, which fails to link later because the
symbol is really provided as C++.

Work around this by setting the NO_SYSTEM_FROM_IMPORTED target property
on iface_test_bld.  Somehow iface_test_exp does not end up with -isystem
so we do not need this workaround for that target.
2015-04-23 10:53:39 -04:00
..
Export install: Allow generator expressions in TARGETS DESTINATION (#14317) 2015-02-11 15:15:33 -05:00
Import Tests: Fix ExportImport on AIX with GCC 2015-04-23 10:53:39 -04:00
CMakeLists.txt Tests: Add generator platform support 2014-09-10 11:21:50 -04:00
InitialCache.cmake.in Tests: Rename CMAKE_TEST_MAKEPROGRAM uses for nested test projects 2014-03-03 15:26:48 -05:00
main.c ENH: Added ExportImport test to test new export/import features. 2008-01-28 08:40:21 -05:00