@@ -144,11 +144,17 @@ def finalize_options(self):
144144 self .include_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'OREAnalytics' )))
145145
146146 # ADD LIBRARY DIRECTORIES
147+
148+ target = "Release"
149+
150+ if self .debug :
151+ target = "Debug"
152+
147153 self .library_dirs .append (self .validate_path (BOOST_LIB ))
148- self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'QuantLib' , 'ql' , 'Release' )))
149- self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'QuantExt' , 'qle' , 'Release' )))
150- self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'OREData' , 'ored' , 'Release' )))
151- self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'OREAnalytics' , 'orea' , 'Release' )))
154+ self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'QuantLib' , 'ql' , target )))
155+ self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'QuantExt' , 'qle' , target )))
156+ self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'OREData' , 'ored' , target )))
157+ self .library_dirs .append (self .validate_path (os .path .join (ORE_DIR , 'build' , 'OREAnalytics' , 'orea' , target )))
152158
153159 #if 'INCLUDE' in os.environ:
154160 # dirs = [dir for dir in os.environ['INCLUDE'].split(';')]
0 commit comments