--- cmake/config/linux-gcc-clang.txt.orig 2019-08-31 15:49:01 UTC +++ cmake/config/linux-gcc-clang.txt @@ -150,14 +150,7 @@ endif () ) endif () -# Release configuration. -set (c_compiler_flags_release - -O3 # optimization level - -fgcse-las # Eliminates stores followed by a load to the same positions. - -fgcse-sm # Moves load/save instructions out of loops, if possible. -) - #-------------------------------------------------------------------------------------------------- # Libraries. #-------------------------------------------------------------------------------------------------- @@ -235,34 +228,31 @@ macro (add_copy_target_exe_to_sandbox_command target) endmacro () macro (add_copy_target_exe_to_sandbox_command target) - get_target_property (target_path ${target} LOCATION) get_sandbox_bin_path (bin_path) add_custom_command (TARGET ${target} POST_BUILD COMMAND mkdir -p ${bin_path} - COMMAND cp ${target_path} ${bin_path} + COMMAND cp $ ${bin_path} ) endmacro () macro (add_copy_target_lib_to_sandbox_command target) - get_target_property (target_path ${target} LOCATION) get_sandbox_lib_path (lib_path) add_custom_command (TARGET ${target} POST_BUILD COMMAND mkdir -p ${lib_path} - COMMAND cp ${target_path} ${lib_path} + COMMAND cp $ ${lib_path} ) endmacro () macro (add_copy_target_to_sandbox_py_module_command target module_name) - get_target_property (target_path ${target} LOCATION) get_sandbox_py_path (py_path) get_relative_path_from_module_name (relative_module_path ${module_name}) set (module_path "${py_path}/${relative_module_path}") add_custom_command (TARGET ${target} POST_BUILD COMMAND mkdir -p ${module_path} - COMMAND cp ${target_path} ${module_path} + COMMAND cp $ ${module_path} ) endmacro ()