[CMake] LINKER_LANGUAGE Fortran C CXX project

David Cole david.cole at kitware.com
Tue Aug 7 14:20:11 EDT 2007


Your first one should work. But it should be "CXX" with uppercase X
characters. And the value of "TARGET" must be set prior to invoking
SET_TARGET_PROPERTIES using ${TARGET} -- are you sure the value of
${TARGET} is correct...?


HTH,
David


On 8/7/07, Marie-Christine Vallet <mmvallet at ucdavis.edu> wrote:
> Hi,
> I have C++ Fortran project, and cannot seem to set the  linker_language
> of the project. What am I doing wrong?
> Any suggestion?
> Thanks,
> Marie
>
>
>
> --- CMakeLists.txt
> PROJECT(skinmesh Fortran CXX C ) # the name of your project
>
> SET_TARGET_PROPERTIES(${TARGET}
>         PROPERTIES
>         LINKER_LANGUAGE Cxx)
>
>
> -----------------------------------------------------------
>
> I also tried this but it does not work either.
>
> --- CMakeLists.txt
> PROJECT(skinmesh Fortran CXX C ) # the name of your project
>
> SET(LINKER_LANGUAGE CXX)
>
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list