forked from Mirrorlandia_minetest/minetest
Fix two CMake build issues
* PostgreSQL fallback code missed the includes (closes #11219) * build failed when Freetype enabled but not found
This commit is contained in:
parent
daf862a38a
commit
3e2145d662
@ -152,6 +152,7 @@ if(ENABLE_POSTGRESQL)
|
|||||||
# but we don't need them, so continue anyway if only those are missing.
|
# but we don't need them, so continue anyway if only those are missing.
|
||||||
if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
|
if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
|
||||||
set(PostgreSQL_FOUND TRUE)
|
set(PostgreSQL_FOUND TRUE)
|
||||||
|
set(PostgreSQL_INCLUDE_DIRS ${PostgreSQL_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
find_package(PostgreSQL)
|
find_package(PostgreSQL)
|
||||||
|
@ -3,7 +3,7 @@ if (BUILD_CLIENT)
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/static_text.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/static_text.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if (ENABLE_FREETYPE)
|
if (USE_FREETYPE)
|
||||||
set(client_irrlicht_changes_SRCS ${client_irrlicht_changes_SRCS}
|
set(client_irrlicht_changes_SRCS ${client_irrlicht_changes_SRCS}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/CGUITTFont.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/CGUITTFont.cpp
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user