diff --git a/Dependencies/CMakeLists.txt b/Dependencies/CMakeLists.txt index 0ae9e7a48..4003bf754 100644 --- a/Dependencies/CMakeLists.txt +++ b/Dependencies/CMakeLists.txt @@ -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