Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Let CMake copy swigconfig.h into swig/Source/Include

  • Loading branch information...
commit 57516596ed18c5bfdbc04bde5df39ee54d1a9d84 1 parent 0935aac
@oliver---- oliver---- authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 third_party/swig/CMakeLists.txt
View
6 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"
Please sign in to comment.
Something went wrong with that request. Please try again.