Hi, in my project I use freetype, so to make that work I had un-hardcode the vendored logic.
|
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/external/freetype/CMakeLists.txt") |
|
message(FATAL_ERROR "No freetype sources found. Install a freetype development package or run the download script in the external folder.") |
|
endif() |
|
add_subdirectory(external/freetype external/freetype-build EXCLUDE_FROM_ALL) |
To this:
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/../freetype/CMakeLists.txt")
message(FATAL_ERROR "No freetype sources found. Install a freetype development package or run the download script in the external folder.")
endif()
add_subdirectory(../freetype freetype-build EXCLUDE_FROM_ALL)
Hardcoding the directory for freetype doesn't work for me. Hopefully you can do something with this. Good day!
Hi, in my project I use freetype, so to make that work I had un-hardcode the vendored logic.
SDL_ttf/CMakeLists.txt
Lines 351 to 354 in a42434b
To this:
Hardcoding the directory for freetype doesn't work for me. Hopefully you can do something with this. Good day!