CAPlatform Module¶
Declares useful variables for the ComputeAorta project based on the host and target platforms. To access the variables in this module:
include(CAPlatform)
- CA_PLATFORM_LINUX¶
Set to
TRUE
if we are targeting a Linux build by querying CMAKE_SYSTEM_NAME.
- CA_PLATFORM_WINDOWS¶
Set to
TRUE
if we are targeting a Windows build by querying CMAKE_SYSTEM_NAME.
- CA_PLATFORM_MAC¶
Set to
TRUE
if we are targeting an Apple platform build by detecting the Darwin OS in CMAKE_SYSTEM_NAME.
- CA_PLATFORM_QNX¶
Set to
TRUE
if we are targeting a QNX build by querying CMAKE_SYSTEM_NAME.
- CA_HOST_EXECUTABLE_SUFFIX¶
CA_HOST_EXECUTABLE_SUFFIX
is the executable extension for running programs on the host system, irrespective of the target system. It is used for programs that will be run as part of the build process, or for programs that will be built using CMAKE_EXECUTABLE_SUFFIX.See also
The notion of a CMAKE_HOST_EXECUTABLE_SUFFIX variable has already been proposed for CMake, should a future version of CMake include that then that could be used instead.
The suffix is
.exe
if and only if the host system is Windows.