Re: [CMake] CMake custom target doesn't build

2018-05-14 Thread Gil Moses
Petr, That worked for me, thanks!!! Gil. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Supp

Re: [CMake] CMake custom target doesn't build

2018-05-14 Thread Petr Kmoch
Hi Gil. The DEPENDS argument of add_custom_target() is for specifying dependency *files*, not *targets*. As the docs ( https://cmake.org/cmake/help/latest/command/add_custom_target.html) say, what you need is add_dependencies(). Also note that you can add the COMMAND directly to the custom targe

[CMake] CMake custom target doesn't build

2018-05-14 Thread Gil Moses
Hi, I'm posting this after getting no useful reply in StackOverflow: https://stackoverflow.com/questions/50198141/cmake-custom-target-doesnt-build. Using CMake 2.8.8, I'm building two targets using: add_library(tgt1 SHARED a.cpp) add_library(tgt2 SHARED b.cpp) After both are built, I need to ru

Re: [CMake] /W1 and resource.rc files

2018-05-14 Thread Gonzalo Garramuño
El 13/05/2018 a las 21:24, Gonzalo Garramuño escribió: I am running into trouble specifying the /W1 flag in add_definitions. This was my problem.  I should have been using add_compile_options. -- Gonzalo Garramuño -- Powered by www.kitware.com Please keep messages on-topic and check the CM