mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-26 02:40:43 -06:00
3dff4e5211
cmake with unix makefiles fails to resolve dist dependencies added from COPY_FROM_BUILD if these dependencies aren't built yet. This commit replaces the COPY_FROM_BUILD based logic with two new functions 'dist_add_configured' and 'dist_add_generated' to indicate which files should be included in the dist tarball. The latter also adds a target level dependency to the dist tarball custom command. Hence the former should be used for files that get generated during a cmake run while the latter should be used for files generated as the result of a 'make/ninja-build' run (like files for which an add_custom_command rule exists). Note: this commit also temporarily disables the dist target when building from a tarball (and hence it won't be tested in distcheck either). This will be handled in a future commit.
25 lines
704 B
CMake
25 lines
704 B
CMake
# CMakeLists.txt for common/
|
|
|
|
# The subdirectories
|
|
ADD_SUBDIRECTORY (cmake_modules)
|
|
ADD_SUBDIRECTORY (debug)
|
|
ADD_SUBDIRECTORY (test-core)
|
|
|
|
SET(common_EXTRA_DIST
|
|
base-typemaps.i
|
|
config.h.cmake.in
|
|
gnc-test-env.pl
|
|
guile-mappings.h
|
|
platform.h)
|
|
|
|
IF (BUILDING_FROM_VCS)
|
|
SET (SWIG_RUNTIME_H ${CMAKE_CURRENT_BINARY_DIR}/swig-runtime.h PARENT_SCOPE)
|
|
ELSE()
|
|
SET (SWIG_RUNTIME_H ${CMAKE_CURRENT_SOURCE_DIR}/swig-runtime.h PARENT_SCOPE)
|
|
ENDIF()
|
|
dist_add_generated(swig-runtime-h swig-runtime.h)
|
|
|
|
SET_LOCAL_DIST(common_DIST_local CMakeLists.txt ${common_EXTRA_DIST})
|
|
|
|
SET(common_DIST ${common_DIST_local} ${cmake_modules_DIST} ${debug_DIST} ${test_core_DIST} PARENT_SCOPE)
|