Skip to content

Commit ce6f361

Browse files
committed
fix broken launch services database search under OS X
1 parent 8a53fca commit ce6f361

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMake/Mathematica/FindMathematica.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,10 @@ function (_add_launch_services_search_paths _outSearchPaths)
351351
# the executable usually resides in the LaunchServices framework Support directory
352352
# The LaunchServices framework is a sub-framework of the CoreServices umbrella framework
353353
cmake_find_frameworks(CoreServices)
354-
find_program (Mathematica_LSRegister_EXECUTABLE NAMES "lsregister" PATH_SUFFIXES "Support"
355-
HINTS "${CoreServices_FRAMEWORKS}/Frameworks/LaunchServices.framework")
354+
find_program (Mathematica_LSRegister_EXECUTABLE
355+
NAMES "lsregister"
356+
PATH_SUFFIXES "/Frameworks/LaunchServices.framework/Support"
357+
HINTS ${CoreServices_FRAMEWORKS})
356358
mark_as_advanced(
357359
Mathematica_CoreServices_DIR
358360
Mathematica_LaunchServices_DIR

0 commit comments

Comments
 (0)