summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/exportheader_test.cpp
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-02-12 18:14:59 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-02-12 18:50:32 (GMT)
commit326ad9949fb8c74b2e266c152bcc9437ea2d484e (patch)
tree96ffa443684642be2e124fcf8808aa47a3bca617 /Tests/Module/GenerateExportHeader/exportheader_test.cpp
parent86d2f3252591f413e57a623e297911bbf03b481e (diff)
downloadCMake-326ad9949fb8c74b2e266c152bcc9437ea2d484e.zip
CMake-326ad9949fb8c74b2e266c152bcc9437ea2d484e.tar.gz
CMake-326ad9949fb8c74b2e266c152bcc9437ea2d484e.tar.bz2
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.
Diffstat (limited to 'Tests/Module/GenerateExportHeader/exportheader_test.cpp')
-rw-r--r--Tests/Module/GenerateExportHeader/exportheader_test.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/Tests/Module/GenerateExportHeader/exportheader_test.cpp b/Tests/Module/GenerateExportHeader/exportheader_test.cpp
index 4f45f37..7802c43 100644
--- a/Tests/Module/GenerateExportHeader/exportheader_test.cpp
+++ b/Tests/Module/GenerateExportHeader/exportheader_test.cpp
@@ -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;
}