[CMake] Overriding build rules to ignore CMAKE__FLAGS_ - is it possible?

2009-03-02 Thread Maciej Mrozowski
Hi I'm working on general purpose CMake applications building facility (in fact fixing existing one - part of Gentoo build system) and I need some way of filtering out hardcoded "insane" CMAKE_BUILD_TYPE-specific compiler flags still being able to preserve user specified CMAKE_BUILD_TYPE (to pr

[CMake] add_custom_command and re-running command when target in DEPENDS was updated

2016-08-29 Thread Maciej Mrozowski
Hello, I have a project that goes something along the lines of: (...) add_jar(generator src/javafile.java) (...) get_target_property(GENERATOR_PATH generator JAR_FILE) (...) add_custom_command ${CMAKE_CURRENT_BINARY_DIR}/generated.cpp COMMAND ${Java_JAVA_EXECUTABLE -jar ${GENERATOR_PATH} --ou

Re: [CMake] add_custom_command and re-running command when target in DEPENDS was updated

2016-08-29 Thread Maciej Mrozowski
On poniedziałek, 29 sierpnia 2016 23:31:59 CEST you wrote: > add_custom_command documentation says: > > > The DEPENDS option specifies files on which the command depends. If any > dependency is an OUTPUT of another custom command in the same directory > (CMakeLists.txt file) CMake automatically

[CMake] [solved sort of] Re: add_custom_command and re-running command when target in DEPENDS was updated

2016-08-30 Thread Maciej Mrozowski
On poniedziałek, 29 sierpnia 2016 23:44:30 CEST you wrote: > On poniedziałek, 29 sierpnia 2016 23:31:59 CEST you wrote: > > add_custom_command documentation says: > > > > > > The DEPENDS option specifies files on which the command depends. If any > > dependency is an OUTPUT of another custom comm

Re: [CMake] Include directories problem when cross compiling with MinGW

2016-09-12 Thread Maciej Mrozowski
On piątek, 2 września 2016 13:12:27 CEST David Demelier wrote: > Do you have any clue? It seems your toolchain does not have include/library path built-in or they are different that those it was built with. You can inspect them by passing one of below parameters to mingw-*-gcc: -print-search-