Skip to content

Commit

Permalink
CMake 3.21 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sakra committed Aug 13, 2021
1 parent d3b0129 commit ac4f924
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CMakeBBLM.cmake
Original file line number Diff line number Diff line change
@@ -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
#
Expand All @@ -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 "<CONFIG>" AND _unresolvedPropName MATCHES "<LANG>")
Expand Down
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.1 (2021-08-13)

* CMake 3.21 compatibility.

## 1.3.0 (2021-04-05)

* CMake 3.20 compatibility.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

cd "`dirname \"$0\"`"
cd "$(dirname "$0")" || exit 1

if [ -n "$(which cmake)" ]; then
cmake -P CMakeBBLM.cmake
Expand Down

0 comments on commit ac4f924

Please sign in to comment.