summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAmir Hammad <amirhammad@users.noreply.github.com>2016-09-11 20:13:23 +0200
committerGitHub <noreply@github.com>2016-09-11 20:13:23 +0200
commit1a9a954fe62eb8de9e46ac4810b55a53dcabd3d7 (patch)
treea6f4b6f2dcbb23d36332471a9b69550c05451750 /cmake
parent5e714edfa65f2f0d18fe9dc722ccd564a04e152a (diff)
parentaa93d64f9f660b96c7cc4d1062ebb9c60ab86952 (diff)
downloadsecure-hid-1a9a954fe62eb8de9e46ac4810b55a53dcabd3d7.tar.gz
secure-hid-1a9a954fe62eb8de9e46ac4810b55a53dcabd3d7.tar.bz2
secure-hid-1a9a954fe62eb8de9e46ac4810b55a53dcabd3d7.zip
Merge pull request #5 from amirhammad/fix-g++-compiler
Fix CXX compiler
Diffstat (limited to 'cmake')
-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})