Hello, On 22/07/16 23:07, Victor Rykov wrote: > After adding a .metal file to a target via add_executable the metal file > does not get pushed to the generated project`s Compile Sources queue and > subsequently does not compile during project build unless I add the file to > the queue manually from Xcode, I`ve tried setting compile flags on the > .metal file as I`ve seen people mention that it works: > > set(MetalTriangle_SHADERS Shaders.metal) > > set_source_files_properties(${MetalTriangle_SHADERS} PROPERTIES > COMPILE_FLAGS "-fno-fast-math") > > > but unfortunately it did not help, is there any workaround to this problem?
Does it help to set the source files LANGUAGE property to C or C++ via https://cmake.org/cmake/help/v3.6/prop_sf/LANGUAGE.html ? Thanks, Gregor -- 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