[CMake] CMAKE_CXX_COMPILER_ID empty

Andrea Galeazzi galeazzi at korg.it
Mon Sep 27 12:03:52 EDT 2010


hi guys,
I'm trying to use the following piece of code with the VS2005 generator:
message("compiler is : ${CMAKE_CXX_COMPILER_ID}")
if(${CMAKE_CXX_COMPILER_ID} MATCHES MSVC)
	if(CMAKE_CONFIGURATION_TYPES)
		set(CMAKE_CONFIGURATION_TYPES Win32Debug4bytealign)
		set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}"  CACHE  
STRING "Reset the configurations to what we need" FORCE)
	endif()
	set(CMAKE_CXX_FLAGS_Win32Debug4bytealign "..........." )
endif()

but it seems that ${CMAKE_CXX_COMPILER_ID} is empty, do you know why?
The cmake version is 2.8.2
KORG ITALY SPA

Via Cagiata, 85 – 60027 Osimo (AN) - ITALY

Ph.   +39 071 727161 -  Fax   +39 071 7231228

P.IVA e Cod. fiscale IT01460580424
Soggetta al controllo della Società KORG Inc. - Giappone
Reg. Imprese di n. 212056/1996 del 23/12/96
REA di Ancona al n. 133105 del 06/12/96
Capitale sociale Euro 814.253,16  i.v.







Ai sensi del D.Lgs. 30 giugno 2003, n. 196, “Codice in materia di  
protezione dei
dati personali” si precisa che le informazioni contenute nel messaggio sono
riservate e destinate esclusivamente alla persona od organizzazione sopra
indicata. A chi legge il presente avviso - se non è l'effettivo  
destinatario, o
un dipendente, o la persona responsabile della consegna del messaggio - si
notifica che sono proibite copie, distribuzione o divulgazione di  
quanto in esso
contenuto (C.P. 616). Se questo messaggio Vi è pervenuto per errore, Vi
preghiamo di informarci immediatamente, di non leggerlo e di  
distruggerlo. Grazie.



According to Legislative Decree n. 196 of 30 June 2003 about “Personal Data
Protection Code” we point out that the information contained in this  
message may
be privileged and confidential and is intended only for the use of the
individual entity named above. If the reader of this message is not  
the intended
recipient, or an employee or agent responsible for delivering this message to
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this message is strictly prohibited. If you have
received this message in error, please notify us immediately and destroy the
original message. Thank you.


More information about the CMake mailing list