diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 15:41:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-26 15:41:52 +0200 |
commit | 917054c58d178939e3a598be3caf2e4f81b8be2e (patch) | |
tree | c12fcea094daee4f6049471bcc89e21bc8b6ec3e /tests | |
parent | d1ae17a8e01e69a6bcb61be31b0d0a4ca4285618 (diff) | |
download | weechat-917054c58d178939e3a598be3caf2e4f81b8be2e.zip |
tests: fix compilation of tests on Rocky 9.4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 58c74e966..2aba8edf4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -22,6 +22,10 @@ enable_language(CXX) remove_definitions(-DHAVE_CONFIG_H) include_directories(${CPPUTEST_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}) +if(NOT CYGWIN) + add_definitions(-fPIC) +endif() + if(ENABLE_PYTHON) add_definitions(-DHAVE_PYTHON) endif() |