@@ -29,7 +29,7 @@ if env['PLATFORM'] == 'darwin':
29
29
# Compiler specific options
30
30
if platform .system ().lower () == "windows" :
31
31
# Visual c++
32
- env .PrependUnique (CCFLAGS = ['/Ox' , '/EHsc' , '/MD' ])
32
+ env .PrependUnique (CCFLAGS = ['/Ox' , '/EHsc' , '/MD' , '/DREAL=double' ])
33
33
env .AppendUnique (CPPDEFINES = {'NDEBUG' : None })
34
34
# env.AppendUnique(LINKFLAGS='/EXPORT')
35
35
else :
@@ -113,8 +113,10 @@ Alias('install-lib', install_lib)
113
113
# install-include - make sure the root include directory is "ObjCryst", so tweak the path a little,
114
114
# so it still works using the objcryst submodule
115
115
ninc = len (Dir ('.' ).path ) + 1
116
+ s = os .path .sep
116
117
inc_target_path = lambda f : os .path .join (env ['includedir' ],
117
- f .path [ninc :].replace ('objcryst/' , '' ).replace ('version/' , 'ObjCryst/' ))
118
+ f .path [ninc :].replace (
119
+ 'objcryst' + s , '' ).replace ('version' + s , 'ObjCryst' + s ))
118
120
include_targets = [inc_target_path (f ) for f in env ['lib_includes' ]]
119
121
install_include = InstallAs (include_targets , env ['lib_includes' ])
120
122
Alias ('install-include' , install_include )
0 commit comments