Michael Bruck wrote:
> I tried that and it seems IS_CYGWIN is not set correctly on cygwin. Any idea ?
>
> Michael
>
Michael,
I see a potential solution that is worth a try.
Move these lines:
if(CYGWIN)
set(IS_CYGWIN, true)
else(CYGWIN)
set(IS_CYGWIN, false)
endif(CYGWIN)
if(MINGW)
set(IS_MINGW, true)
else(MINGW)
set(IS_MINGW, false)
endif(MINGW)
above this line:
# preprocess and output config.h into release or debug directory
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h)
the configure_file() function outputs the config.h file where your
#define IS_CYGWIN 1 should then be seen.
That definitely looks like my bug. I am not a cmake expert, but with a
little reading and borrowing from other cmake examples, was able to put
together these scripts. I think it was worth my time.
Dick
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development