summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/csharp/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/csharp/CMakeLists.txt b/src/csharp/CMakeLists.txt
index 522e5a8..10193ab 100644
--- a/src/csharp/CMakeLists.txt
+++ b/src/csharp/CMakeLists.txt
@@ -10,9 +10,8 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_CSHARP_SOURCE
VERBATIM
)
-SET_SOURCE_FILES_PROPERTIES(${KOLAB_SWIG_CSHARP_SOURCE_FILE} PROPERTIES GENERATED 1)
-ADD_CUSTOM_TARGET(generate_CSHARP_bindings ALL DEPENDS ${KOLAB_SWIG_CSHARP_SOURCE_FILE})
-
+SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_CSHARP_SOURCE_FILE} PROPERTIES GENERATED 1)
+ADD_CUSTOM_TARGET(generate_CSHARP_bindings ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${KOLAB_SWIG_CSHARP_SOURCE_FILE})
# Compile CSHARP Bindings
find_program(GMCS gmcs /usr/bin)
@@ -26,6 +25,9 @@ if (GMCS_FOUND)
VERBATIM
)
+ SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/kolabformat.dll PROPERTIES GENERATED 1)
+ ADD_CUSTOM_TARGET(generate_CSHARP_bindings ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/kolabformat.dll)
+
if (KOLAB_CSHARP_INSTALL_DIR)
set(CSHARP_INSTALL_DIR ${KOLAB_CSHARP_INSTALL_DIR})
else (KOLAB_CSHARP_INSTALL_DIR)
@@ -33,6 +35,6 @@ if (GMCS_FOUND)
endif (KOLAB_CSHARP_INSTALL_DIR)
install(TARGETS csharpbindings LIBRARY DESTINATION ${CSHARP_INCLUDE_DIR})
- install(FILES kolabformat.dll LIBRARY DESTINATION ${CSHARP_INSTALL_DIR})
-endif (GMCS_FOUND)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kolabformat.dll LIBRARY DESTINATION ${CSHARP_INSTALL_DIR})
+endif (GMCS_FOUND)