Permalink
Please sign in to comment.
Browse files
Move intermediate file into intermediate dir (#5981)
The intermediate file, cmake.definitions, is moved into the intermediate directory: bin/obj/OS.Arch.Conf/ The script won't emit error for not having the cmake results because some systems (Windows) do not use Cmake and users might use "skipnative". Fixes #5976 Signed-off-by: MyungJoo Ham <[email protected]>
- Loading branch information...
Showing
with
11 additions
and 5 deletions.
| @@ -1,11 +1,11 @@ | ||
| get_directory_property( DirDefs COMPILE_DEFINITIONS ) | ||
| # Reset the definition file | ||
| -file(WRITE cmake.definitions "") | ||
| +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions "") | ||
| foreach( d ${DirDefs} ) | ||
| if($ENV{VERBOSE}) | ||
| message( STATUS "Compiler Definition: " ${d} ) | ||
| endif($ENV{VERBOSE}) | ||
| - file(APPEND cmake.definitions ${d}) | ||
| - file(APPEND cmake.definitions "\n") | ||
| + file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions ${d}) | ||
| + file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions "\n") | ||
| endforeach() |
0 comments on commit
5acbced