diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index ed0e591..0000000 --- a/.gitattributes +++ /dev/null @@ -1,5 +0,0 @@ -*.bat text eol=crlf -*.cmd text eol=crlf -*.ps1 text eol=crlf - -*.sh text eol=lf \ No newline at end of file diff --git a/.gitignore b/.gitignore index bc49670..3ea4625 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,8 @@ -.vs/ +build*/ cmake-build-*/ .cache/ .vscode/ -.xmake/ +.vs/ .idea/ __pycache__/ -.DS_Store -build*/ \ No newline at end of file +.DS_Store \ No newline at end of file diff --git a/rocsetup.cmake b/rocsetup.cmake index 23b6997..07cc194 100644 --- a/rocsetup.cmake +++ b/rocsetup.cmake @@ -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") @@ -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()