Skip to content

Commit

Permalink
[misc] Add default values of TI_VERSION (taichi-dev#3459)
Browse files Browse the repository at this point in the history
* [misc] Add default values of TI_VERSION

* add warning
  • Loading branch information
sjwsl authored Nov 11, 2021
1 parent 6f483b5 commit 153f338
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
cmake_minimum_required(VERSION 3.12)

project(taichi)
SET(TI_VERSION_MAJOR ${TI_VERSION_MAJOR})
SET(TI_VERSION_MINOR ${TI_VERSION_MINOR})
SET(TI_VERSION_PATCH ${TI_VERSION_PATCH})

if (NOT DEFINED TI_VERSION_MAJOR)
message(WARNING "It seems that you are running cmake manually, which may cause issues. Please use setup.py to build taichi from source, see https://docs.taichi.graphics/lang/articles/contribution/dev_install for more details.")
set(TI_VERSION_MAJOR 0)
set(TI_VERSION_MINOR 0)
set(TI_VERSION_PATCH 0)
endif()

set(CMAKE_CXX_STANDARD 17)

Expand Down

0 comments on commit 153f338

Please sign in to comment.