I cross compile for VxWorks using cmake. When I start cmake, for the first time I have to provide information about the compiler, the target OS, etc.
In the cross-compilation dialog box, three target system settings are set:
- operating system
- Version
- CPU
(followed by a compiler, etc.)
While I can get the first, using CMAKE_SYSTEM_NAME , I can not get the version and processor. Both return an empty string.
Here is an example:
MESSAGE("CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}") MESSAGE("CMAKE_SYSTEM_VERSION: ${CMAKE_SYSTEM_VERSION}")
Output:
CMAKE_SYSTEM_PROCESSOR: CMAKE_SYSTEM_VERSION:
My Cmake Version 2.8.10.2, and the target OS is VxWorks (if it matters, the compiler is WindRiver GNU).
How can I get the version and processor that I installed at the beginning? Or is this not possible if I cross-compile an OS that is unknown to cmake?
(Btw. Compilation is working fine)
ollo source share