[Cmake-commits] CMake branch, next, updated. v2.8.12.1-6166-g1cf1d65
Stephen Kelly
steveire at gmail.com
Wed Dec 11 07:00:40 EST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via 1cf1d65a919d3e2d66393c04ffb1e8dd3d54e1fb (commit)
via aa1e89caf70c59548b023426c6b003f818cbb750 (commit)
from 79cd32e502535af8d7f70de4f6480ad940969cfe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1cf1d65a919d3e2d66393c04ffb1e8dd3d54e1fb
commit 1cf1d65a919d3e2d66393c04ffb1e8dd3d54e1fb
Merge: 79cd32e aa1e89c
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Wed Dec 11 07:00:39 2013 -0500
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed Dec 11 07:00:39 2013 -0500
Merge topic 'GenerateExportHeader-tests' into next
aa1e89c Try to fix on MSVC6.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aa1e89caf70c59548b023426c6b003f818cbb750
commit aa1e89caf70c59548b023426c6b003f818cbb750
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Wed Dec 11 13:00:04 2013 +0100
Commit: Stephen Kelly <steveire at gmail.com>
CommitDate: Wed Dec 11 13:00:04 2013 +0100
Try to fix on MSVC6.
diff --git a/Tests/Module/GenerateExportHeader/CMakeLists.txt b/Tests/Module/GenerateExportHeader/CMakeLists.txt
index 3c0254e..9ce44fa 100644
--- a/Tests/Module/GenerateExportHeader/CMakeLists.txt
+++ b/Tests/Module/GenerateExportHeader/CMakeLists.txt
@@ -197,6 +197,6 @@ else()
endif()
target_compile_definitions(GenerateExportHeader
PRIVATE
- SRC_DIR="${CMAKE_CURRENT_SOURCE_DIR}/reference/${_platform}"
- BIN_DIR="${CMAKE_CURRENT_BINARY_DIR}"
+ "SRC_DIR=${CMAKE_CURRENT_SOURCE_DIR}/reference/${_platform}"
+ "BIN_DIR=${CMAKE_CURRENT_BINARY_DIR}"
)
diff --git a/Tests/Module/GenerateExportHeader/exportheader_test.cpp b/Tests/Module/GenerateExportHeader/exportheader_test.cpp
index d82d02e..e5f30fa 100644
--- a/Tests/Module/GenerateExportHeader/exportheader_test.cpp
+++ b/Tests/Module/GenerateExportHeader/exportheader_test.cpp
@@ -124,10 +124,13 @@ int main()
libstatic_not_exported();
libstatic_excluded();
- compare(SRC_DIR "/libshared_export.h",
- BIN_DIR "/libshared/libshared_export.h");
- compare(SRC_DIR "/libstatic_export.h",
- BIN_DIR "/libstatic/libstatic_export.h");
+#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");
return 0;
}
-----------------------------------------------------------------------
Summary of changes:
Tests/Module/GenerateExportHeader/CMakeLists.txt | 4 ++--
.../GenerateExportHeader/exportheader_test.cpp | 11 +++++++----
2 files changed, 9 insertions(+), 6 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list