diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2021-05-12 14:07:05 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2021-05-12 14:07:05 +0300 |
commit | 8a13b8a0ee22fa05f282553ec1acfdb291267d24 (patch) | |
tree | a2db1a6989625ab8647d650476e45cf8f6016096 /src/CMakeLists.txt | |
parent | 7575910eb0e7468841f267f2a706f2ea83e0f96d (diff) |
Fix build with musl libc
Use FindIntl cmake modules which will leave Intl_LIBRARIES empty if
libintl is provided by the libc.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 08e540435..c670c55d0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -207,8 +207,7 @@ target_link_libraries(remmina ${X11_LIBRARIES}) target_link_libraries(remmina ${CMAKE_THREAD_LIBS_INIT}) -find_package(Intl) -if(INTL_FOUND AND "${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD|OpenBSD|NetBSD") +if(Intl_FOUND) message(STATUS "${CMAKE_SYSTEM_NAME} detected, building with Intl") include_directories(${Intl_INCLUDE_DIRS}) target_link_libraries(remmina ${Intl_LIBRARIES}) |