Re: [CMake] Assembler flag support

2010-04-20 Thread Matthias Goesswein

Hello!

I've submitted the bug report 
(http://public.kitware.com/Bug/view.php?id=10577)


I also added an example project, which uses the gnu assembler, so you 
could reproduce the problem.


Cheers,
Matthias.


Am 19.04.2010 22:32, schrieb Alexander Neundorf:

On Friday 16 April 2010, Matthias Goesswein wrote:

Hello!


Is there a variable like CMAKE_C_FLAGS_INIT for the assembler available?
(e.g. CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT)


Did you try this one ?
I didn't add any explicit support for that, but I think this should work
autoamtically for any language support by cmake (if it doesn't, I'll fix
it for ASM).


Yes, I tried that. Just for reference, my plattform file looks like this:


Can you please post this as a bug in the cmake bug tracker at
http://public.kitware.com/Bug ?
This way it doesn't get lost. I'll look after it.

Thanks
Alex


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Assembler flag support

2010-04-19 Thread Alexander Neundorf
On Friday 16 April 2010, Matthias Goesswein wrote:
> Hello!
>
> >> Is there a variable like CMAKE_C_FLAGS_INIT for the assembler available?
> >> (e.g. CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT)
> >
> > Did you try this one ?
> > I didn't add any explicit support for that, but I think this should work
> > autoamtically for any language support by cmake (if it doesn't, I'll fix
> > it for ASM).
>
> Yes, I tried that. Just for reference, my plattform file looks like this:

Can you please post this as a bug in the cmake bug tracker at 
http://public.kitware.com/Bug ?
This way it doesn't get lost. I'll look after it.

Thanks
Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Assembler flag support

2010-04-16 Thread Matthias Goesswein

Hello!


Is there a variable like CMAKE_C_FLAGS_INIT for the assembler available?
(e.g. CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT)

Did you try this one ?
I didn't add any explicit support for that, but I think this should work 
autoamtically for any language support by cmake (if it doesn't, I'll fix it 
for ASM).


Yes, I tried that. Just for reference, my plattform file looks like this:

---

MESSAGE(STATUS "Fujitsu_16LX-fasm907s.cmake loaded")

SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSION ".s")
SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION ".o")
SET(CMAKE_EXECUTABLE_SUFFIX ".abs")
SET(CMAKE_LINK_LIBRARY_SUFFIX ".a")
SET(CMAKE_LINK_LIBRARY_FILE_FLAG "-l")

SET(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT "-cpu ${CMAKE_SYSTEM_PROCESSOR}")
SET(CMAKE_ASM${ASM_DIALECT}_DEBUG_FLAGS_INIT "-cpu 
${CMAKE_SYSTEM_PROCESSOR} -g")
SET(CMAKE_ASM${ASM_DIALECT}_MINSIZEREL_FLAGS_INIT "-cpu 
${CMAKE_SYSTEM_PROCESSOR}")
SET(CMAKE_ASM${ASM_DIALECT}_RELEASE_FLAGS_INIT "-cpu 
${CMAKE_SYSTEM_PROCESSOR}")
SET(CMAKE_ASM${ASM_DIALECT}_RELWITHDEBINFO_FLAGS_INIT "-cpu 
${CMAKE_SYSTEM_PROCESSOR} -g")


# Rule variable to compile a single object file
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT
"  -o  ")

# Rule variable to create a static library
SET(CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY
  "${CMAKE_COMMAND} -E remove "
  "flib907s -cpu ${CMAKE_SYSTEM_PROCESSOR} -g -a  ")

# Rule variable to link a axecutable
SET(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
   "flnk907s   -o  
 "

   "f2ms -S3 -o .s19 -adjust ")

# not supported
SET(CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY "")
SET(CMAKE_ASM${ASM_DIALECT}_CREATE_MODULE_LIBRARY "")

---

Without the -cpu option, the assembler can't assemble a file. So i tried 
to set the flags within the INIT-Variables, but when i run make (I use 
MSYS Makefiles), the assembler is called without the -cpu command line 
option (snipped of the output of make VERBOSE=1):


cd /C/Projekte/Software/Gen/Src/Processor && 
/C/Projekte/Tools/Softune/V30/bin/FASM907S.EXE 
-I/C/Projekte/Software/Src/Generic -I/C/Projekte/Software/Src/Processor
-I/C/Projekte/Software/Src/Main   -o 
CMakeFiles/lib_processor.dir/MB90340.s.o 
/C/Projekte/Software/Src/Processor/MB90340.s


Cheers,
Matthias.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Assembler flag support

2010-04-15 Thread Alexander Neundorf
On Thursday 15 April 2010, Matthias Goesswein wrote:
> Hello!
>
> Is there a variable like CMAKE_C_FLAGS_INIT for the assembler available?
>
> (e.g. CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT)

Did you try this one ?
I didn't add any explicit support for that, but I think this should work 
autoamtically for any language support by cmake (if it doesn't, I'll fix it 
for ASM).

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Assembler flag support

2010-04-15 Thread Matthias Goesswein

Hello!

Is there a variable like CMAKE_C_FLAGS_INIT for the assembler available?

(e.g. CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT)

Which flags are passed to  in the Rule variable for creating an 
object file from an assembler source:


SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT 
"  -o  ")


I'm using CMake 2.8.1.

Cheers,
Matthias.

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake