Fix mac build.
This commit is contained in:
parent
587a35eab4
commit
d7df24816c
|
@ -1,12 +1,6 @@
|
|||
function(install_script_files scriptname)
|
||||
if(APPLE)
|
||||
foreach(file ${ARGN})
|
||||
configure_file(
|
||||
"${file}"
|
||||
"${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/${file}"
|
||||
COPY_ONLY
|
||||
)
|
||||
endforeach(file)
|
||||
install(FILES ${ARGN} DESTINATION ${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources/scripts/${scriptname}/)
|
||||
else(APPLE)
|
||||
install(FILES ${ARGN} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/clementine/scripts/${scriptname}/)
|
||||
endif(APPLE)
|
||||
|
|
|
@ -78,7 +78,7 @@ ScriptManager::ScriptManager(QObject* parent)
|
|||
#if defined(Q_OS_WIN32)
|
||||
search_paths_ << QCoreApplication::applicationDirPath() + "/scripts";
|
||||
#elif defined(Q_OS_MAC)
|
||||
search_paths_ << mac::GetResourcesPath() + "/scripts");
|
||||
search_paths_ << mac::GetResourcesPath() + "/scripts";
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue