mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
b722eea925
If target property LINKER_LANGUAGE is set, LINK_LANGUAGE generator expression evaluation must be always successful. This fix can be helpful to elaborate a solution for issue #21818.
19 lines
217 B
C++
19 lines
217 B
C++
|
|
#if !defined(BUILD_STATIC) && defined(_WIN32)
|
|
# define EXPORT_SYMBOL __declspec(dllexport)
|
|
#else
|
|
# define EXPORT_SYMBOL
|
|
#endif
|
|
|
|
EXPORT_SYMBOL
|
|
void func_cxx()
|
|
{
|
|
}
|
|
|
|
extern "C" {
|
|
EXPORT_SYMBOL
|
|
void func_c_cxx()
|
|
{
|
|
}
|
|
}
|