Re: [CMake] Setting compile defs with: Cuda, add_subdirectory, and set_target_properties (COMPILE_DEFINITIONS)

2010-07-14 Thread James Sharpe
Try changing your macro into a function instead. James On 14/07/2010, Brian Davis wrote: > 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 t

[CMake] FindBoost

2010-03-29 Thread James Sharpe
When specifying a minimum version for boost if cmake finds an older version of boost it correctly errors when using find_package(Boost REQUIRED). Subsequent runs of cmake run without error as the variables that were set to the older version of boost are still in the cache and thus FindBoost skips o