Some minor changes.
authorGaurav Khanna <gkhanna@microsoft.com>
Wed, 24 Aug 2016 19:33:27 +0000 (12:33 -0700)
committerGaurav Khanna <gkhanna@microsoft.com>
Wed, 24 Aug 2016 19:33:27 +0000 (12:33 -0700)
CMakeLists.txt
src/debug/ee/wks/CMakeLists.txt
src/vm/wks/CMakeLists.txt

index ab86511..a40d7f2 100644 (file)
@@ -11,9 +11,11 @@ project(CoreCLR)
 # Include cmake functions
 include(functions.cmake)
 
-message(STATUS "CMAKE_VS_PLATFORM_TOOLSET is ${CMAKE_VS_PLATFORM_TOOLSET}")
-message(STATUS "CMAKE_VS_PLATFORM_NAME is ${CMAKE_VS_PLATFORM_NAME}")
-message(STATUS "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION is ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
+if (WIN32)
+  message(STATUS "VS_PLATFORM_TOOLSET is ${CMAKE_VS_PLATFORM_TOOLSET}")
+  message(STATUS "VS_PLATFORM_NAME is ${CMAKE_VS_PLATFORM_NAME}")
+  message(STATUS "VS_WINDOWS_TARGET_PLATFORM_VERSION is ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
+endif (WIN32)
 
 # Set commonly used directory names
 set(CLR_DIR ${CMAKE_CURRENT_SOURCE_DIR})
index 1f6d435..a096cbf 100644 (file)
@@ -23,7 +23,7 @@ if(CLR_CMAKE_PLATFORM_ARCH_ARM64)
 elseif(CLR_CMAKE_PLATFORM_ARCH_ARM)
     
     # On Arm32 for Windows, use C++ compiler to process the .asm since it includes C-style headers.
-    set(DBGHELPERS_ASM $ENV{__IntermediatesDir}/dbghelpers.asm)
+    set(DBGHELPERS_ASM ${CMAKE_CURRENT_BINARY_DIR}/dbghelpers.asm)
     set(ASM_OPTIONS " -g ")
     
     preprocess_def_file(${ASM_FILE} ${DBGHELPERS_ASM})
index 48ca6b0..360845d 100644 (file)
@@ -30,7 +30,7 @@ if (WIN32)
 
           # Inserts a custom command in CMake build to preprocess each asm source file
           get_filename_component(name ${ASM_FILE} NAME_WE)
-          file(TO_CMAKE_PATH "$ENV{__IntermediatesDir}/${name}.asm" ASM_PREPROCESSED_FILE)
+          file(TO_CMAKE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${name}.asm" ASM_PREPROCESSED_FILE)
           preprocess_def_file(${ASM_FILE} ${ASM_PREPROCESSED_FILE})
 
           # On Arm32, compile the preprocessed binary to .obj
@@ -40,7 +40,6 @@ if (WIN32)
           # Generate the batch file that will invoke the assembler
           file(TO_CMAKE_PATH "${CMAKE_CURRENT_BINARY_DIR}/runasm_${name}_${CMAKE_BUILD_TYPE}.cmd" ASM_SCRIPT_FILE)
 
-          # ARM32TODO: Set asm options global so that all invocations can use it.
           file(GENERATE OUTPUT "${ASM_SCRIPT_FILE}"
                     CONTENT "\"${CMAKE_ASM_MASM_COMPILER}\" -g ${ASM_INCLUDE_DIRECTORIES} ${ASM_DEFINITIONS} ${ASM_CMDLINE}")