The error sounds like the file needs to be marked as GENERATED ( https://cmake.org/cmake/help/latest/prop_sf/GENERATED.html ) but I would have thought qt5_add_resources would do that for you.
You might look at using CMake built in rc support ( https://cmake.org/cmake/help/latest/prop_tgt/AUTORCC.html )On Sun, Aug 5, 2018 at 4:54 AM Damir Porobic <damir_poro...@live.com> wrote: > > Hi folks, > > > I'm trying to troubleshoot a build problem where, when I first time run > "cmake .." it fails to find a resource file, when I run "make" it builds the > resource files but fails later on, now when I try to run "cmake .." again it > succeeds. After this point everything runs fine and it happens when building > for the first time. > > Any idea what I'm doing wrong? > > > Here are the CMakeList files https://pastebin.com/pyhVTJUr and the output > that I get https://pastebin.com/4wGjR3Lx > > > Thanks in advance! > > > Damir > > -- > > 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 Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake -- 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 Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake