Skip to content

Commit 80a3943

Browse files
committed
Fixed Mac OSX plugin paths for running from source builds.
Mac OSX bundle fixes on the way.
1 parent 672698d commit 80a3943

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/smilx/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,12 @@ ELSE(WIN32) #Rest of the OSes (Unix and Apple atm)
153153
# endif()
154154

155155
# Make sure the 'Resources' Directory is correctly created before we build
156-
# add_custom_command (TARGET smilx PRE_BUILD COMMAND mkdir -p ${EXECUTABLE_OUTPUT_PATH}/\${CONFIGURATION}/smilx.app/Contents/Resources)
156+
# add_custom_command (TARGET smilx PRE_BUILD COMMAND mkdir -p ${EXECUTABLE_OUTPUT_PATH}/${CONFIGURATION}/smilx.app/Contents/Resources)
157157

158158
IF(BUILD_PLUGINS)
159159
message("Plugin Directory is ${SMILI_PLUGINS_PATH}")
160-
INSTALL(DIRECTORY ${SMILI_PLUGINS_PATH} DESTINATION ${EXECUTABLE_OUTPUT_PATH}/\${CONFIGURATION}/smilx.app/Contents COMPONENT Runtime)
160+
INSTALL(DIRECTORY ${SMILI_PLUGINS_PATH} DESTINATION ${EXECUTABLE_OUTPUT_PATH}/${CONFIGURATION}/smilx.app/Contents COMPONENT Runtime)
161+
message("Plugin Install Directory is ${EXECUTABLE_OUTPUT_PATH}/${CONFIGURATION}/smilx.app/Contents")
161162
ENDIF(BUILD_PLUGINS)
162163

163164
set(CMAKE_INSTALL_PREFIX "")

src/Qt/milxQtMain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3205,12 +3205,12 @@ bool milxQtMain::loadPlugins()
32053205
pluginsDir.cdUp();
32063206
sharedObjectSuffix = "dll"; //!<\todo use better cross-platform method here
32073207
#elif defined(Q_OS_MAC)
3208-
/*if (pluginsDir.dirName() == "MacOS")
3208+
if (pluginsDir.dirName() == "MacOS")
32093209
{
32103210
pluginsDir.cdUp();
32113211
pluginsDir.cdUp();
32123212
pluginsDir.cdUp();
3213-
}*/
3213+
}
32143214
sharedObjectSuffix = "dylib"; //!<\todo use better cross-platform method here
32153215
#else
32163216
sharedObjectSuffix = "so"; //!<\todo use better cross-platform method here

0 commit comments

Comments
 (0)