Passing Compilation Flag from CMake file

Irvanda Kurniadi <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CAPgw+iM+cOg_z2iCvuomY+h+dN=z9=MtQwyxZeCMMubNbFzh1A@mail.gmail.com>
Hi,

I'm in the middle of porting OpenMPI. I got some trouble that I have to use
CMakelists.txt to pass the Compilation Flag through Makefile.

I got this error message while trying to compile:
error: 'OMPI_MPIHANDLES_DLL_PREFIX' undeclared (first use in this function)
error: 'OMPI_MSGQ_DLL_PREFIX' undeclared (first use in this function)

And I found the OMPI_MPIHANDLES_DLL_PREFIX in CMakelist.txt as shown below:
SET_TARGET_PROPERTIES(libmpi PROPERTIES COMPILE_FLAGS
"${OMPI_C_DEF_PRE}OMPI_
MPIHANDLES_DLL_PREFIX=libompi_dbg_mpihandles
 ${OMPI_C_DEF_PRE}OMPI_MSGQ_DLL_PREFIX=libompi_dbg_msgq")

Does anybody know how to use this CMake file?

Regards,
Irvanda

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.