From 57516596ed18c5bfdbc04bde5df39ee54d1a9d84 Mon Sep 17 00:00:00 2001 From: Oliver Buchtala Date: Sun, 27 Mar 2011 23:43:07 +0200 Subject: [PATCH] Let CMake copy swigconfig.h into swig/Source/Include --- third_party/swig/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/third_party/swig/CMakeLists.txt b/third_party/swig/CMakeLists.txt index bd07dbb..be4753e 100644 --- a/third_party/swig/CMakeLists.txt +++ b/third_party/swig/CMakeLists.txt @@ -25,6 +25,12 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/swig/.svn") endif() +if(WIN32) + message("Creating swigconfig.h") + execute_process( + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/swigconfig.h.win32 ${CMAKE_CURRENT_SOURCE_DIR}/swig/Source/Include/swigconfig.h + ) +endif() set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/swig/Source/CParse"