Skip to content
Permalink
Browse files
Fix two CMake build issues
* PostgreSQL fallback code missed the includes (closes #11219)
* build failed when Freetype enabled but not found
  • Loading branch information
sfan5 committed Apr 21, 2021
1 parent daf862a commit 3e2145d662d26443e96ac7191eda093c85c6f2bc
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/CMakeLists.txt
  2. +1 −1 src/irrlicht_changes/CMakeLists.txt
@@ -152,6 +152,7 @@ if(ENABLE_POSTGRESQL)
# but we don't need them, so continue anyway if only those are missing.
if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
set(PostgreSQL_FOUND TRUE)
set(PostgreSQL_INCLUDE_DIRS ${PostgreSQL_INCLUDE_DIR})
endif()
else()
find_package(PostgreSQL)
@@ -3,7 +3,7 @@ if (BUILD_CLIENT)
${CMAKE_CURRENT_SOURCE_DIR}/static_text.cpp
)

if (ENABLE_FREETYPE)
if (USE_FREETYPE)
set(client_irrlicht_changes_SRCS ${client_irrlicht_changes_SRCS}
${CMAKE_CURRENT_SOURCE_DIR}/CGUITTFont.cpp
)

0 comments on commit 3e2145d

Please sign in to comment.