mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Revert "More conversions from pkg-config variables to imported targets."
This reverts commit 1a9fcfefad because
on MinGW cmake complains about the paths in pkgconfig files. This can
be addressed by using the MSYS2 cmake instead of the MINGW32 one, but
that requires some other changes... and there's also a path separator
bug in that version of FindPkgConfig.cmake.
This commit is contained in:
@@ -22,7 +22,7 @@ set_dist_list(test_core_DIST ${test_core_SOURCES} ${test_core_noinst_HEADERS} CM
|
||||
unittest-support.i unittest-support.scm)
|
||||
|
||||
add_library(test-core STATIC ${test_core_SOURCES} ${test_core_noinst_HEADERS})
|
||||
target_link_libraries(test-core gncmod-engine PkgConfig::GLIB2)
|
||||
target_link_libraries(test-core gncmod-engine ${GLIB2_LDFLAGS})
|
||||
if (UNIX)
|
||||
target_compile_options(test-core PRIVATE -fPIC)
|
||||
endif()
|
||||
@@ -41,7 +41,7 @@ gnc_add_swig_python_command (swig-unittest-support-python
|
||||
)
|
||||
|
||||
add_library(test-core-guile ${SWIG_UNITTEST_SUPPORT_GUILE_C})
|
||||
target_link_libraries(test-core-guile test-core PkgConfig::GUILE PkgConfig::GLIB2)
|
||||
target_link_libraries(test-core-guile test-core ${GUILE_LDFLAGS} ${GLIB2_LDFLAGS})
|
||||
|
||||
if (WITH_PYTHON)
|
||||
add_library(unittest_support MODULE ${SWIG_UNITTEST_SUPPORT_PYTHON_C})
|
||||
|
||||
Reference in New Issue
Block a user