Re: [CMake] Different compiler in sub directory

2012-09-05 Thread Yuri Timenkov
It's better to use ExternalProject.cmake to configure part of your solution with different compiler. On Wed, Sep 5, 2012 at 12:09 PM, Nicholas Yue wrote: > Hi, > > I have a need to build different parts of a project using different > version of g++ > > If I set the top level CMakeLists.tx

[CMake] Different compiler in sub directory

2012-09-05 Thread Nicholas Yue
Hi, I have a need to build different parts of a project using different version of g++ If I set the top level CMakeLists.txt compiler via -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ and subsequently use another compiler SET ( CMAKE_CXX_COMPILER "/usr/bin/g++" )