Hello friends, I am trying to cross-compile an application from Windows to Linux. My Toolchain file looks like this:
set(CMAKE_SYSTEM_NAME Linux) #specify the cross-compiler set (CMAKE_C_COMPILER /bin/gcc-linux) set (CMAKE_CXX_COMPILER /bin/g++-linux) The problem is that I have in my main CMakeLists.txt file the instruction add_definitions ( ) with several flags I need to set for my application. The problem is that the last flag I added ( a pre-processor flag) is working fine on C compiler but causing a problem on C++ compiler. My question is if can I move the add_definition( ) to the Toolchain file to define a different set of flags for each compiler? Is it possible? Thanks Enrique
_______________________________________________ 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
