aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
AgeCommit message (Collapse)AuthorLines
2021-12-08build: Disable -Wreturn-type-c-linkage warningAvatar Marvin Schmidt -0/+3
There are two locations that trigger this warning: > In file included from paludis/repositories/accounts/accounts_repository.cc:39: > paludis/hook.hh:161:48: error: 'paludis_hook_run_3' has C-linkage specified, but returns user-defined type 'paludis::HookResult' which is incompatible with C [-Werror,-Wreturn-type-c-linkage] > extern "C" paludis::HookResult PALUDIS_VISIBLE paludis_hook_run_3( > ^ > paludis/hook.hh:167:89: error: 'paludis_hook_auto_phases' has C-linkage specified, but returns incomplete type 'const std::shared_ptr<const paludis::Sequence<std::string>>' (aka 'const shared_ptr<const Sequence<basic_string<char>>>') which could be incompatible with C [-Werror,-Wreturn-type-c-linkage] > extern "C" const std::shared_ptr<const paludis::Sequence<std::string> > PALUDIS_VISIBLE paludis_hook_auto_phases( > ^ > 2 errors generated. Since we want C mangling for the function name but use a C++ return type at the same time we can't fix the warning properly unfortunately. Disable it so it doesn't prevent us from having a warning-free build
2021-11-26build: Use FindPython instead of FindPython{Interp,Libs}Avatar Marvin Schmidt -1/+1
2021-11-18build: Use cmake's FindSQLite3 moduleAvatar Heiko Becker -55/+0
instead of a custom one we have to maintain. Raises the required cmake version to 3.14.0 which shouldn't be a problem because cmake.exlib on Exherbo already requires 3.16.0 and it was released over two and a half years ago.
2021-09-17tests: Disambiguate test names by adding python/ruby prefixesAvatar Marvin Schmidt -0/+2
2021-06-16ruby: fix build with ruby 3.0 and clangAvatar Marc-Antoine Perennou -0/+2
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2018-12-22build: Generate an import target for Jansson and use itAvatar Heiko Becker -0/+8
2018-12-22build: Use imported targets for GTestAvatar Heiko Becker -5/+2
Raises the cmake requirement to 3.5.0 (released in March 2016) but we don't need to manually mess with INCLUDE_DIRS and linking to a thread library anymore.
2016-12-19pass ${SYDBOX_ACTIVE} through test runnerAvatar Benedikt Morbach -0/+1
fixes tests under sydbox escaped to make it take the value when the test is being run not when the command is generated Change-Id: I86d7b8a4d4e142dc3ef912b09aaa52c96b1d8a50
2016-12-14build: Install headers generated from .se filesAvatar Marvin Schmidt -3/+18
Change-Id: I66a5594bbce99d6fae533f967af767c9cede3457
2016-12-13build: Use the imported target for linking to pthreadAvatar Heiko Becker -1/+1
Our required cmake version is new enough (>=3.1) and usage of the imported target is recommended by cmake's documentation [1]. Furthermore, according to the docs THREADS_PREFER_PTHREAD_FLAG can only be used with the imported target. [1] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
2016-12-12build: fix Jansson detectionAvatar Saleem Abdulrasool -4/+3
2016-12-07Revert "build: remove unnecessary MD5 usage"Avatar Saleem Abdulrasool -5/+10
This reverts commit 7b1f8701f5e418d2b11621a703085cbd08079dc7. Restore the original change. The uniquing is needed for builds which enable python and ruby bindings together.
2016-12-03build: remove some unnecessary ignores in packagingAvatar Saleem Abdulrasool -11/+0
Remove the autotools filtering in the cpack rules as the autotools build has been removed.
2016-12-03build: remove unnecessary MD5 usageAvatar Saleem Abdulrasool -10/+5
Don't add a uniquing hash into the target, they are already unique based on the file name being generated. If we ever end up with the same file name being used in multiple directories, we can re-introduce the MD5 nonce. This should speed up the generation a slight bit.
2016-12-03build: explicitly link against threads in gtestsAvatar Saleem Abdulrasool -0/+1
In the case the googletest library is built static and was built with threading, the library may have an implicit dependency which is unrecorded. Add an explicit link against the threading library. The slight overlinkage is inconsequential as it is for tests only.
2016-11-30build: introduce cmake based build systemAvatar Saleem Abdulrasool -0/+705