Skip to content

Commit be77588

Browse files
authored
Apply suggestion from @ferdymercury
1 parent 2e56495 commit be77588

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtins/ftgl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ add_library(FTGL::FTGL IMPORTED STATIC GLOBAL)
6767
set_target_properties(FTGL::FTGL PROPERTIES
6868
IMPORTED_LOCATION ${ROOT_FTGL_LIBRARY}
6969
INTERFACE_INCLUDE_DIRECTORIES ${ROOT_FTGL_PREFIX}/include)
70-
target_compile_definitions(FTGL::FTGL PUBLIC FTGL_LIBRARY_STATIC) # needed for Win32 since public flag is not correctly propagated to parent scope (BUILD_SHARED_LIBS works fine for building but when installing, flag info is lost)
70+
target_compile_definitions(FTGL::FTGL INTERFACE FTGL_LIBRARY_STATIC) # needed for Win32 since public flag is not correctly propagated to parent scope (BUILD_SHARED_LIBS works fine for building but when installing, flag info is lost)
7171
if(builtin_freetype)
7272
add_dependencies(BUILTIN_FTGL BUILTIN_FREETYPE)
7373
endif()

0 commit comments

Comments
 (0)