Commit 6bcc05f0 authored by Jan Möbius's avatar Jan Möbius

Use GLUT_LIBRARY_DIR instead of extracting it from the library itself

parent 4b85e23c
......@@ -23,13 +23,9 @@ endfunction(gp_item_default_embedded_path_override)
include (BundleUtilities)
get_filename_component(_GlutDir "@GLUT_glut_LIBRARY@" PATH)
# Find all plugins
file (GLOB _plugins "@CMAKE_BINARY_DIR@/Build/Plugins/*.dll")
# fix all dependencies
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/@OPENFLIPPER_PRODUCT_STRING@.exe" "${_plugins}" "${_GlutDir};@OMP_PATH@;@GLUT_LIBRARY_DIR@;@Qwt5_Qt4_LIBRARY_DIR@;@GLEW_LIBRARY_DIR@;@QT_BINARY_DIR@;@FTGL_LIBRARY_DIRS@;@FREETYPE_LIBRARY_DIR@;@NITE2_LIBRARY_DIR@;@OPENNI2_LIBRARY_DIR@;@QWT6_LIBRARY_DIR@;@ASSIMP_LIBRARY_DIR@;@CGAL_BIN_DIR@;@GUROBI_BIN_DIR@;@IPOPT_LIBRARY_DIR@;@WINDOWS_COPY_LIBDIRS@;@Boost_LIBRARYDIR@;@Boost_LIBRARY_DIRS@;@Python3_LIBRARY_DIRS@")
fixup_bundle ("@CMAKE_BINARY_DIR@/Build/@OPENFLIPPER_PRODUCT_STRING@.exe" "${_plugins}" "@GLUT_LIBRARY_DIR@;@OMP_PATH@;@GLUT_LIBRARY_DIR@;@Qwt5_Qt4_LIBRARY_DIR@;@GLEW_LIBRARY_DIR@;@QT_BINARY_DIR@;@FTGL_LIBRARY_DIRS@;@FREETYPE_LIBRARY_DIR@;@NITE2_LIBRARY_DIR@;@OPENNI2_LIBRARY_DIR@;@QWT6_LIBRARY_DIR@;@ASSIMP_LIBRARY_DIR@;@CGAL_BIN_DIR@;@GUROBI_BIN_DIR@;@IPOPT_LIBRARY_DIR@;@WINDOWS_COPY_LIBDIRS@;@Boost_LIBRARYDIR@;@Boost_LIBRARY_DIRS@;@Python3_LIBRARY_DIRS@")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment