summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2016-09-11 20:09:01 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2016-09-11 20:09:01 +0200
commitaa93d64f9f660b96c7cc4d1062ebb9c60ab86952 (patch)
treea6f4b6f2dcbb23d36332471a9b69550c05451750
parent5e714edfa65f2f0d18fe9dc722ccd564a04e152a (diff)
downloadsecure-hid-aa93d64f9f660b96c7cc4d1062ebb9c60ab86952.tar.gz
secure-hid-aa93d64f9f660b96c7cc4d1062ebb9c60ab86952.tar.bz2
secure-hid-aa93d64f9f660b96c7cc4d1062ebb9c60ab86952.zip
Fix CXX compiler
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--cmake/toolchain.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/toolchain.cmake b/cmake/toolchain.cmake
index b6e2af7..8522d7a 100644
--- a/cmake/toolchain.cmake
+++ b/cmake/toolchain.cmake
@@ -8,7 +8,7 @@ set (CMAKE_C_FLAGS "")
set (CMAKE_CXX_FLAGS "")
set (BUILD_SHARED_LIBS OFF)
find_program (CMAKE_C_COMPILER NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
-find_program (CMAKE_C_COMPILER NAMES ${_CMAKE_TOOLCHAIN_PREFIX}g++ HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
+find_program (CMAKE_CXX_COMPILER NAMES ${_CMAKE_TOOLCHAIN_PREFIX}g++ HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
find_program (CMAKE_OBJCOPY NAMES ${_CMAKE_TOOLCHAIN_PREFIX}objcopy HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
find_program (CMAKE_SIZE NAMES ${_CMAKE_TOOLCHAIN_PREFIX}size HINTS ${_CMAKE_TOOLCHAIN_LOCATION})