Okay I found the problem. At the end I had the command:
set_target_properties(MyTarget PROPERTIES LINKER_LANGUAGE C++) Which is wrong. I changed "C++" to "CXX" and then everything works as expected. Thanks again for the help. Dan -----Ursprüngliche Nachricht----- Von: CMake [mailto:cmake-boun...@cmake.org] Im Auftrag von Bill Hoffman Gesendet: Donnerstag, 22. Januar 2015 21:31 An: cmake@cmake.org Betreff: Re: [CMake] Visual Studio 2013 No CXX flags applied On 1/22/2015 1:04 PM, Daniel Kollmann wrote: > I added a message before the executable is added. What happens when you grep your --trace output for CMAKE_CXX_FLAGS, do you ever see the flags being set as they look on the command line? -Bill -- 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: http://public.kitware.com/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: http://public.kitware.com/mailman/listinfo/cmake