Re: [CMake] [Digital Signature Failure] Add a build event that depends on a target

2017-11-19 Thread Dvir Yitzchaki
Try add_dependencies(program test) See https://cmake.org/cmake/help/latest/command/add_dependencies.html. Regards, Dvir From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Pawel Veselov Sent: Saturday, November 18, 2017 01:09 To: cmake@cmake.org Subject: [Digital Signature Failure] [CMake

[CMake] Handling of generator expressions

2017-11-19 Thread Roberto Di Remigio
Hello, I am trying to compile the following code snippet: int main(int argc, char ** argv) { int stack_array[100]; stack_array[1] = 0; return stack_array[argc + 100]; // BOOM } The followin CMakeLists.txt works fine, but you can notice that target_compile_options takes a list, while target_