This commit is contained in:
Alexey Pelykh 2013-08-18 22:09:37 +03:00
parent df6ec4036b
commit 2452472b13

View file

@ -25,9 +25,7 @@ else()
COMMAND "${CMAKE_CURRENT_LIST_DIR}/generate-swig.sh" COMMAND "${CMAKE_CURRENT_LIST_DIR}/generate-swig.sh"
COMMENT "Generating sources...") COMMENT "Generating sources...")
endif() endif()
add_custom_target(OsmAndJNI_swig add_custom_target(OsmAndJNI_swig)
DEPENDS "${CMAKE_CURRENT_LIST_DIR}/c-src/swig.cpp"
)
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/c-src/swig.cpp" PROPERTIES GENERATED TRUE) set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/c-src/swig.cpp" PROPERTIES GENERATED TRUE)
if(CMAKE_SHARED_LIBS_ALLOWED_ON_TARGET) if(CMAKE_SHARED_LIBS_ALLOWED_ON_TARGET)