forked from osmocom/wireshark
CMake: Make sure DATAFILE_DIR exists.
Create DATAFILE_DIR when we're building an application bundle. Hopefully this will fix the build error on the OS X x86 builder. Change-Id: I57414bcd87ab21958ae8131a8cd77951b29e02f7 Reviewed-on: https://code.wireshark.org/review/6763 Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
parent
21dfda65d7
commit
b714da2958
|
@ -1315,6 +1315,11 @@ endif(WIN32)
|
|||
# Copy ${INSTALL_FILES} and ${INSTALL_DIRS} to ${DATAFILE_DIR}
|
||||
add_custom_target(copy_data_files ALL DEPENDS ${INSTALL_FILES})
|
||||
set_target_properties(copy_data_files PROPERTIES FOLDER "Copy Tasks")
|
||||
if(ENABLE_APPLICATION_BUNDLE)
|
||||
add_custom_command(TARGET copy_data_files PRE_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${DATAFILE_DIR}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/COPYING.txt
|
||||
|
|
Loading…
Reference in New Issue