File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ endif( )
4242add_definitions ( -DVERSION_MOOSE="${VERSION_MOOSE} " )
4343
4444# Write VERSION to a file VERSION so that setup.py can use it.
45- message (STATUS "+ Writing ${VERSION_MOOSE} to ${VERSION_FILE} " )
45+ set (VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR} " )
46+ message (STATUS "Writing ${VERSION_MOOSE} to ${VERSION_FILE} " )
4647file (WRITE ${VERSION_FILE} ${VERSION_MOOSE} )
4748
4849# This snippet is from LLVM project.
Original file line number Diff line number Diff line change 2424
2525script_dir = os .path .dirname ( os .path .abspath ( __file__ ) )
2626
27- version = '3.1.2'
27+ version = '3.1.3'
28+ if os .path .exists ( os .path .join ( script_dir , '..' , 'VERSION' ) ):
29+ with open (os .path .join ( script_dir , '..' , 'VERSION' ) ) as f :
30+ version = f .read ( )
2831
2932try :
3033 import importlib .machinery
You can’t perform that action at this time.
0 commit comments