Am Wednesday 14 July 2010 schrieb Brian Davis: > I have a macro which gets called to create cuda and matlab mex enabled > libraries and apps. I call this macro **twice from within a single > directory** to create 2 libraries. Problem is that I desire to set > compiler defines -DWHATEVER=goop etc differently for each lib (for each of > the two in question). For instance -DCPU_RECON=yes for cpu library and > -DGPU_RECON=yes for gpu library which rely on the same source code in the > same directory:
> SET_TARGET_PROPERTIES( ${MATLAB_CUDA_MEX_NAME} PROPERTIES
> SUFFIX .mexw64
> LINKER_LANGUAGE CXX
> COMPILE_DEFINITIONS -DMY_DEFINE=DEFINE_THIS_GOOP
> LINK_FLAGS /export:mexFunction
> )
Shouldn't this be COMPILE_FLAGS?
Eike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
