Fix CMake build for Mac OS X.
Recent versions of CMake omit adding Info.plist to the application
bundle due to an error attempting to parse a symbolic reference as a
CMake one. It is fixed by adding escape characters.
Also set CMAKE_MACOSX_RPATH to silence a warning.
Bug b/62380447
Change-Id: I6464fce7e3d4812d872343806138e44c269dd2da
Reviewed-on: https://swiftshader-review.googlesource.com/10008
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54c658d..0841d8d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,8 @@
endif()
endif()
+set(CMAKE_MACOSX_RPATH ON)
+
###########################################################
# Convenience macros
###########################################################
diff --git a/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/Build/OSX/Info.plist b/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/Build/OSX/Info.plist
index 459b752..eabfae5 100644
--- a/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/Build/OSX/Info.plist
+++ b/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/Build/OSX/Info.plist
@@ -11,7 +11,7 @@
<key>LSApplicationCategoryType</key>
<string></string>
<key>CFBundleIdentifier</key>
- <string>com.imgtec.${PRODUCT_NAME:rfc1034identifier}</string>
+ <string>com.imgtec.$\{PRODUCT_NAME:rfc1034identifier\}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>