I tried: get_directory_property(cmake_include_directories INCLUDE_DIRECTORIES) set(include_dirs) foreach(it ${cmake_include_directories}) set(include_dirs ${include_dirs} "${it}/") endforeach() set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES "${include_dirs}") #set_property(TARGET ${PROJECT_NAME}.hex PROPERTY INCLUDE_DIRECTORIES ${include_dirs}) message(STATUS "New Dir: ${include_dirs}")
but the values in include_dir will not override the values in INCLUDE_DIRECTORIES -- View this message in context: http://cmake.3232098.n2.nabble.com/Change-C-INCLUDES-in-flags-make-tp7594641p7594650.html Sent from the CMake mailing list archive at Nabble.com. -- 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