Skip to content

Commit

Permalink
clean: remove .gitattributes, update .gitignore, and set minimum CMak…
Browse files Browse the repository at this point in the history
…e version to 3.10
  • Loading branch information
zchrissirhcz committed Nov 24, 2024
1 parent e113258 commit 1852bb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .gitattributes

This file was deleted.

7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.vs/
build*/
cmake-build-*/
.cache/
.vscode/
.xmake/
.vs/
.idea/
__pycache__/
.DS_Store
build*/
.DS_Store
8 changes: 7 additions & 1 deletion rocsetup.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.10)

function(print_args)
math(EXPR LAST_INDEX "${CMAKE_ARGC}-1")
Expand Down Expand Up @@ -60,6 +60,12 @@ function(set_generator)
endfunction()


if(NOT DEFINED CMAKE_SCRIPT_MODE_FILE)
message(FATAL_ERROR "rocsetup.cmake can only be used in script mode, i.e. cmake -P rocsetup.cmake ...")
return()
endif()


print_original_args()
#print_args()
parse_args()
Expand Down

0 comments on commit 1852bb0

Please sign in to comment.