forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move intermediate file into intermediate dir (dotnet#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
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters