mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 21:55:13 +08:00
Improved CMake script
* Instead of configuring Xcode templates directly to /Library the files are first saved in CMAKE_CURRENT_BINARY_DIR * This avoid running CMake as root on some systems
This commit is contained in:
parent
6c802952fb
commit
7ae381533e
@ -277,13 +277,13 @@ elseif(SFML_OS_MACOSX)
|
|||||||
|
|
||||||
# install the Xcode templates if requested
|
# install the Xcode templates if requested
|
||||||
if(SFML_INSTALL_XCODE_TEMPLATES)
|
if(SFML_INSTALL_XCODE_TEMPLATES)
|
||||||
install(DIRECTORY tools/xcode/templates/SFML
|
|
||||||
DESTINATION /Library/Developer/Xcode/Templates
|
|
||||||
PATTERN "*.in" EXCLUDE)
|
|
||||||
configure_file(
|
configure_file(
|
||||||
"tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in"
|
"tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in"
|
||||||
"/Library/Developer/Xcode/Templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist"
|
"${CMAKE_CURRENT_BINARY_DIR}/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist"
|
||||||
@ONLY)
|
@ONLY)
|
||||||
|
install(DIRECTORY "tools/xcode/templates/SFML" "${CMAKE_CURRENT_BINARY_DIR}/tools/xcode/templates/SFML"
|
||||||
|
DESTINATION /Library/Developer/Xcode/Templates
|
||||||
|
PATTERN "*.in" EXCLUDE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
elseif(SFML_OS_IOS)
|
elseif(SFML_OS_IOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user