Skip to content

Commit

Permalink
Let CMake copy swigconfig.h into swig/Source/Include
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver7654 committed Mar 27, 2011
1 parent 0935aac commit 5751659
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions third_party/swig/CMakeLists.txt
Expand Up @@ -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"
Expand Down

0 comments on commit 5751659

Please sign in to comment.