diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f908977ac..aa1375430b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,11 @@ else() message(STATUS "${PROJECT_NAME} - Using python includes (provided): ${Python_INCLUDE_DIRS}") endif() +# Fix linux issue +if (UNIX AND NOT APPLE) + include_directories (SYSTEM "/usr/include/freetype2") +endif() + # Fetch/Include juce (set browsable modules in IDE) set_property (GLOBAL PROPERTY USE_FOLDERS YES) option (JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable Module Source Groups" ON) @@ -80,11 +85,6 @@ if (NOT "${Python_LIBRARY_DIRS}" STREQUAL "") target_link_directories (${PROJECT_NAME} PRIVATE "${Python_LIBRARY_DIRS}") endif() -if (APPLE) -elseif (UNIX) - include_directories (SYSTEM "/usr/include/freetype2") -endif() - target_compile_definitions (${PROJECT_NAME} PRIVATE JUCE_STANDALONE_APPLICATION=1 JUCE_DISABLE_JUCE_VERSION_PRINTING=1