summaryrefslogtreecommitdiff
path: root/definitionsconsistencycheck.cmake
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@gmail.com>2016-06-28 07:44:09 (GMT)
committerJan Vorlicek <janvorli@microsoft.com>2016-06-28 07:44:09 (GMT)
commit5acbced129024a38aec530f1bb9cd85b7568e05a (patch)
tree26d1dc35f59b4dec10abb4236b155a1e29e10f30 /definitionsconsistencycheck.cmake
parent4f134e6e5faecfb184ac4859970b556149357e2d (diff)
downloadcoreclr-5acbced129024a38aec530f1bb9cd85b7568e05a.zip
coreclr-5acbced129024a38aec530f1bb9cd85b7568e05a.tar.gz
coreclr-5acbced129024a38aec530f1bb9cd85b7568e05a.tar.bz2
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 <myungjoo.ham@samsung.com>
Diffstat (limited to 'definitionsconsistencycheck.cmake')
-rw-r--r--definitionsconsistencycheck.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/definitionsconsistencycheck.cmake b/definitionsconsistencycheck.cmake
index cc029bb..51a70f7 100644
--- a/definitionsconsistencycheck.cmake
+++ b/definitionsconsistencycheck.cmake
@@ -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()