Skip to content

Commit 5d8c654

Browse files
committed
Cmake fixes
1 parent 94b9e24 commit 5d8c654

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

client/CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ if(UNIX AND NOT APPLE)
6767
find_package(Fontconfig)
6868
if(Fontconfig_FOUND)
6969
add_definitions(-DFONTCONFIG)
70-
include_directories(${Fontconfig_INCLUDE_DIRS})
71-
link_libraries(${Fontconfig_LIBRARIES})
7270
endif()
7371
endif()
7472

@@ -244,6 +242,11 @@ if(TARGET SDL2::SDL2 OR TARGET SDL::SDL)
244242
if(X11_FOUND)
245243
target_link_libraries(odamex X11)
246244
endif()
245+
if(Fontconfig_FOUND)
246+
target_include_directories(odamex ${Fontconfig_INCLUDE_DIRS})
247+
target_link_libraries(odamex ${Fontconfig_LIBRARIES})
248+
target_compile_options(odamex PRIVATE ${Fontconfig_COMPILE_OPTIONS})
249+
endif()
247250
endif()
248251

249252
odamex_copy_libs(odamex)

client/gui/gui_common.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ Fl_Image* GUIRes::icon_odamex_128()
6767

6868
#else
6969

70-
bool LOAD_FONT() { return false; }
71-
void UNLOAD_FONT() {}
70+
bool LOAD_FONT(const char*) { return false; }
71+
void UNLOAD_FONT(const char*) {}
7272

7373
#endif
7474

0 commit comments

Comments
 (0)