From: Matt L. <mat...@ki...> - 2010-03-09 16:15:16
|
Okay, I misunderstood. What you proposed (below) is exactly what I had in mind. Matt Wheeler, Frederick W (GE, Research) wrote: > Something like this ... > > # only use ADD_LIBRARY( ... SHARED ... ) if this is true > VXL_LINK_EXPLICIT_SHARED_ENABLED=TRUE > IF using GCC > IF on a 64-bit-system > create the ALLOW_SHARED_LINKING option, defaulting to TRUE > IF not ALLOW_SHARED_LINKING > VXL_LINK_EXPLICIT_SHARED_ENABLED=FALSE > ENDIF > ENDIF > ENDIF > > So this can be done ... > > IF( VXL_LINK_EXPLICIT_SHARED_ENABLED ) > ADD_LIBRARY(brec_batch SHARED ${brec_batch_sources}) > ENDIF() > > Fred > |