summaryrefslogtreecommitdiff
path: root/src/irrlicht_changes/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/irrlicht_changes/CMakeLists.txt')
-rw-r--r--src/irrlicht_changes/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/irrlicht_changes/CMakeLists.txt b/src/irrlicht_changes/CMakeLists.txt
index 3a265c99d..d2f66ab77 100644
--- a/src/irrlicht_changes/CMakeLists.txt
+++ b/src/irrlicht_changes/CMakeLists.txt
@@ -1,7 +1,16 @@
if (BUILD_CLIENT)
set(client_irrlicht_changes_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/static_text.cpp
- PARENT_SCOPE
)
+
+ if (ENABLE_FREETYPE)
+ set(client_irrlicht_changes_SRCS ${client_irrlicht_changes_SRCS}
+ ${CMAKE_CURRENT_SOURCE_DIR}/CGUITTFont.cpp
+ )
+ endif()
+
+ # CMake require us to set a local scope and then parent scope
+ # Else the last set win in parent scope
+ set(client_irrlicht_changes_SRCS ${client_irrlicht_changes_SRCS} PARENT_SCOPE)
endif()