File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,6 +260,10 @@ if(MOD_JACKRACK)
260260 list (APPEND MLT_SUPPORTED_COMPONENTS jackrack)
261261endif ()
262262
263+ if (MOD_OPENFX)
264+ pkg_check_modules (glib IMPORTED_TARGET glib-2.0 )
265+ endif ()
266+
263267if (USE_LV2)
264268 pkg_check_modules (lilv IMPORTED_TARGET lilv-0 )
265269 if (NOT lilv_FOUND)
Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ add_custom_target(Other_openfx_Files SOURCES
88 filter_openfx.yml
99)
1010
11- include (GenerateExportHeader )
12- generate_export_header (mltopenfx )
13- target_compile_options (mltopenfx PRIVATE ${MLT_COMPILE_OPTIONS} )
14- target_include_directories (mltopenfx PRIVATE ${CMAKE_CURRENT_BINARY_DIR } )
15- target_link_libraries (mltopenfx PRIVATE mlt PkgConfig::glib ${CMAKE_DL_LIBS } )
16- if (NOT MSVC )
17- target_link_libraries (mltopenfx PRIVATE m )
11+ if (GPL AND TARGET PkgConfig::glib)
12+ include (GenerateExportHeader )
13+ generate_export_header (mltopenfx )
14+ target_compile_options (mltopenfx PRIVATE ${MLT_COMPILE_OPTIONS} )
15+ target_include_directories (mltopenfx PRIVATE ${CMAKE_CURRENT_BINARY_DIR } )
16+ target_link_libraries (mltopenfx PRIVATE mlt PkgConfig::glib ${CMAKE_DL_LIBS } )
17+ if (NOT MSVC )
18+ target_link_libraries (mltopenfx PRIVATE m )
19+ endif ()
1820endif ()
1921
2022set_target_properties (mltopenfx PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${MLT_MODULE_OUTPUT_DIRECTORY} " )
You can’t perform that action at this time.
0 commit comments