Clean up and tweak build system
[oweals/minetest.git] / src / cguittfont / CMakeLists.txt
index d2647ba694da53b97eb0a65a7ad5ec55779783b6..7717a2f91075dd4b8db45ef8614cb02c555d1f63 100644 (file)
@@ -7,8 +7,8 @@ add_library(cguittfont xCGUITTFont.cpp)
 if(FREETYPE_PKGCONFIG_FOUND)
        set_target_properties(cguittfont
                PROPERTIES
-               COMPILE_FLAGS "${FREETYPE_CFLAGS}"
-               LINK_FLAGS "${FREETYPE_LDFLAGS}"
+               COMPILE_FLAGS "${FREETYPE_CFLAGS_STR}"
+               LINK_FLAGS "${FREETYPE_LDFLAGS_STR}"
        )
 
        include_directories(
@@ -27,3 +27,4 @@ target_link_libraries(
        ${FREETYPE_LIBRARY}
        ${ZLIB_LIBRARIES}  # needed by freetype, repeated here for safety
        )
+