Skip to content

Commit 4aab286

Browse files
committed
Fix variable name for asian ttf and add default path for FreeBSD
1 parent d6b215a commit 4aab286

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,13 @@ target_compile_definitions(xmoto PRIVATE CONFIGURE_DEFAULT_THEME=\"Classic\")
541541

542542
if(CMAKE_SYSTEM_NAME MATCHES Windows)
543543
target_compile_definitions(xmoto PRIVATE
544-
DEFAULT_ASIAN_TTF_FILE=\"Textures/Fonts/bkai00mp.ttf\")
544+
ASIAN_TTF_FILE=\"Textures/Fonts/bkai00mp.ttf\")
545+
elseif(CMAKE_SYSTEM_NAME MATCHES FreeBSD)
546+
target_compile_definitions(xmoto PRIVATE
547+
ASIAN_TTF_FILE=\"/usr/local/share/fonts/TrueType/bkai00mp.ttf\")
545548
else()
546549
target_compile_definitions(xmoto PRIVATE
547-
DEFAULT_ASIAN_TTF_FILE=\"/usr/share/fonts/truetype/arphic/bkai00mp.ttf\")
550+
ASIAN_TTF_FILE=\"/usr/share/fonts/truetype/arphic/bkai00mp.ttf\")
548551
endif()
549552

550553
# Handle localization

0 commit comments

Comments
 (0)