]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed float-abi detection command in cmake. Should have been using $ENV{CC} but using...
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Wed, 29 May 2019 19:32:29 +0000 (12:32 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 4 Jun 2019 08:54:16 +0000 (10:54 +0200)
CMakeLists.txt

index bbed27764586d060221ca7aad4575ac2717b82c4..edb565d35942af51ec2756fa914cae225b65c2ea 100644 (file)
@@ -165,7 +165,7 @@ else()
         endif()
     endif()
     if(__GNUC__ AND "${ARCH}" MATCHES "arm")
-        execute_process(COMMAND "${CC}" "-dumpmachine"
+        execute_process(COMMAND ${CMAKE_C_COMPILER} "-dumpmachine"
                         OUTPUT_VARIABLE GCC_MACHINE)
         if ("${GCC_MACHINE}" MATCHES "eabihf")
             set(FLOATABI "-mfloat-abi=hard")