summaryrefslogtreecommitdiff
path: root/Modules/Platform/Apple-XL-CXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Apple-XL-CXX.cmake')
-rw-r--r--Modules/Platform/Apple-XL-CXX.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Platform/Apple-XL-CXX.cmake b/Modules/Platform/Apple-XL-CXX.cmake
new file mode 100644
index 000000000..ea330c8cf
--- /dev/null
+++ b/Modules/Platform/Apple-XL-CXX.cmake
@@ -0,0 +1,7 @@
+set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle")
+
+# Enable shared library versioning.
+set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name")
+
+# -qhalt=e = Halt on error messages (rather than just severe errors)
+string(APPEND CMAKE_C_FLAGS_INIT " -qhalt=e")