mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-18 01:31:04 -05:00
Tests: fix GenerateExportHeader directory definitions
There's no need to stringify the values, but instead just pass in strings. The core problem is that the path may have tokens which are replaced by the preprocessor which causes an invalid path to be used.
This commit is contained in:
@@ -136,13 +136,10 @@ int main()
|
||||
libstatic_not_exported();
|
||||
libstatic_excluded();
|
||||
|
||||
#define STRINGIFY_IMPL(A) #A
|
||||
#define STRINGIFY(A) STRINGIFY_IMPL(A)
|
||||
|
||||
compare(STRINGIFY(SRC_DIR) "/libshared_export.h",
|
||||
STRINGIFY(BIN_DIR) "/libshared/libshared_export.h");
|
||||
compare(STRINGIFY(SRC_DIR) "/libstatic_export.h",
|
||||
STRINGIFY(BIN_DIR) "/libstatic/libstatic_export.h");
|
||||
compare(SRC_DIR "/libshared_export.h",
|
||||
BIN_DIR "/libshared/libshared_export.h");
|
||||
compare(SRC_DIR "/libstatic_export.h",
|
||||
BIN_DIR "/libstatic/libstatic_export.h");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user