Skip to content

Commit

Permalink
fix: freetype dependencies (windows) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Mar 2, 2022
1 parent 2a89903 commit 4185cc2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ set(GLFW_BUILD_EXAMPLES OFF)
set(GLFW_BUILD_TESTS OFF)
set(GLFW_INSTALL OFF)

add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE")
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE")
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE")
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE")

if(WIN32)
add_subdirectory("freetype")
elseif(APPLE)
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE")
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE")
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE")
add_definitions("-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE")
add_subdirectory("freetype")
add_subdirectory ("glfw")
else() #Linux
Expand Down

0 comments on commit 4185cc2

Please sign in to comment.