diff --git a/CMakeBBLM.cmake b/CMakeBBLM.cmake index b60cbcc..9e0db14 100644 --- a/CMakeBBLM.cmake +++ b/CMakeBBLM.cmake @@ -1,7 +1,7 @@ # CMakeBBLM. See https://github.com/sakra/CMakeBBLM # # This script generates a BBEdit codeless language module for CMake from cmake.plist.in -# See http://www.barebones.com/support/develop/clm.html +# See https://www.barebones.com/support/develop/clm.html # # Copyright (c) 2016-2021 Sascha Kratky # @@ -19,6 +19,9 @@ function(resolve_templates _propNames) if (NOT CMAKE_VERSION VERSION_LESS "3.19.0") list (APPEND _languages "ISPC") endif() + if (NOT CMAKE_VERSION VERSION_LESS "3.21.0") + list (APPEND _languages "HIP") + endif() set (_configurations "None" "Debug" "MinSizeRel" "Release" "RelWithDebInfo") foreach (_unresolvedPropName IN LISTS ARGN) if (_unresolvedPropName MATCHES "" AND _unresolvedPropName MATCHES "") diff --git a/HISTORY.md b/HISTORY.md index e7a429e..99eff09 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,7 @@ +## 1.3.1 (2021-08-13) + +* CMake 3.21 compatibility. + ## 1.3.0 (2021-04-05) * CMake 3.20 compatibility. diff --git a/README.md b/README.md index 161b40a..ad8a5f6 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ module: The generated module is tailored to the version of CMake installed on the system, i.e., it will only support keywords and predefined names valid for that version. -The install script copies the generated language module to BBEdit's application support folder in +The installation script copies the generated language module to BBEdit's application support folder in the Dropbox data folder or in the user's Library folder. Usage diff --git a/install.sh b/install.sh index a36d6ed..eae3dc2 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -cd "`dirname \"$0\"`" +cd "$(dirname "$0")" || exit 1 if [ -n "$(which cmake)" ]; then cmake -P CMakeBBLM.cmake