blt icon indicating copy to clipboard operation
blt copied to clipboard

Add compile flags to blt_add_library and executable macros

Open white238 opened this issue 7 years ago • 2 comments

@cyrush says this should smooth out CUDA support. It also adds a nice feature though this could cause problems with adding compiler flags too liberally to mixed source libraries.

white238 avatar May 09 '18 20:05 white238

Would they be "extra" compile flags, or the only compile flags?

davidbeckingsale avatar May 09 '18 20:05 davidbeckingsale

They would be the initially set flags since there wouldn't be a target created yet there wouldn't be any to override. Also any language specific flags CMake will automatically add. This wouldn't stop you from adding any to sources or to the target after the blt_add_* call.

white238 avatar May 09 '18 20:05 white238