MantisBT - CMake
View Issue Details
0015108CMakeCMakepublic2014-08-25 22:042015-01-05 08:39
Mikhail Nikonov 
Brad King 
normalminoralways
closedfixed 
CMake 2.8.12.2 
CMake 3.1CMake 3.1 
0015108: Platform information override files are not loaded for assembler.
Files defined by CMAKE_USER_MAKE_RULES_OVERRIDE and CMAKE_USER_MAKE_RULES_OVERRIDE_ASM are not loaded during assembler initialization.
1. Create files:

-- CMakeLists.txt:
set(CMAKE_USER_MAKE_RULES_OVERRIDE override.cmake)
project(Test C CXX ASM)

-- override.cmake:
set(CMAKE_C_FLAGS_INIT "-Wall")
set(CMAKE_CXX_FLAGS_INIT "-Wall")
set(CMAKE_ASM_FLAGS_INIT "-Wall")

2. Run cmake. After the run, CMAKE_ASM_FLAGS does not contain flag -Wall while C/CXX counterparts do.
It seems that Modules/CMakeASMInformation.cmake is responsible for loading the override files, but it doesn't contain the corresponding code; attached patch adopts missing fragment from CMake[C/CXX]Information.cmake.
No tags attached.
patch 0001-Load-CMAKE_USER_MAKE_RULES_OVERRIDE-_ASM-for-assembl.patch (1,576) 2014-08-25 22:04
https://public.kitware.com/Bug/file/5232/0001-Load-CMAKE_USER_MAKE_RULES_OVERRIDE-_ASM-for-assembl.patch
Issue History
2014-08-25 22:04Mikhail NikonovNew Issue
2014-08-25 22:04Mikhail NikonovFile Added: 0001-Load-CMAKE_USER_MAKE_RULES_OVERRIDE-_ASM-for-assembl.patch
2014-08-26 17:00Alex NeundorfAssigned To => Alex Neundorf
2014-08-26 17:00Alex NeundorfStatusnew => assigned
2014-08-27 09:27Brad KingNote Added: 0036681
2014-08-27 09:27Brad KingAssigned ToAlex Neundorf => Brad King
2014-08-27 09:27Brad KingStatusassigned => resolved
2014-08-27 09:27Brad KingResolutionopen => fixed
2014-08-27 09:27Brad KingFixed in Version => CMake 3.1
2014-08-27 09:27Brad KingTarget Version => CMake 3.1
2015-01-05 08:39Robert MaynardNote Added: 0037621
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0036681)
Brad King   
2014-08-27 09:27   
Applied, thanks:

 Load CMAKE_USER_MAKE_RULES_OVERRIDE[_ASM] for assembler
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=487f147f [^]
(0037621)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months