|
|
@@ -2,9 +2,12 @@
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
|
# To ensure maximum portability across various compilers and platforms
|
|
|
-# deactivate any compiler extensions
|
|
|
-set(CMAKE_C_EXTENSIONS FALSE)
|
|
|
-set(CMAKE_CXX_EXTENSIONS FALSE)
|
|
|
+# deactivate any compiler extensions. Skip this for QNX, where additional
|
|
|
+# work is needed to build without compiler extensions.
|
|
|
+if (NOT CMAKE_SYSTEM_NAME STREQUAL "QNX")
|
|
|
+ set(CMAKE_C_EXTENSIONS FALSE)
|
|
|
+ set(CMAKE_CXX_EXTENSIONS FALSE)
|
|
|
+endif()
|
|
|
|
|
|
include(CheckIncludeFile)
|
|
|
# Check if we can build support for ELF parsing.
|