$ make -- The C compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- stlink version: 79306cc -- Major Minor Patch -- Performing Test C_SUPPORTS_STD_GNU99 -- Performing Test C_SUPPORTS_STD_GNU99 - Success -- Performing Test C_SUPPORTS_WALL -- Performing Test C_SUPPORTS_WALL - Success -- Performing Test C_SUPPORTS_WEXTRA -- Performing Test C_SUPPORTS_WEXTRA - Success -- Performing Test C_SUPPORTS_WSHADOW -- Performing Test C_SUPPORTS_WSHADOW - Success -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 - Success -- Performing Test C_SUPPORTS_FSTRICT_ALIASING -- Performing Test C_SUPPORTS_FSTRICT_ALIASING - Success -- Performing Test C_SUPPORTS_WUNDEF -- Performing Test C_SUPPORTS_WUNDEF - Success -- Performing Test C_SUPPORTS_WFORMAT -- Performing Test C_SUPPORTS_WFORMAT - Success -- Performing Test C_SUPPORTS_WFORMAT_SECURITY -- Performing Test C_SUPPORTS_WFORMAT_SECURITY - Success -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED - Success -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS - Failed -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 - Failed -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION - Success -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS - Success -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Success -- Performing Test C_SUPPORTS_O2 -- Performing Test C_SUPPORTS_O2 - Success -- Performing Test C_SUPPORTS_WERROR -- Performing Test C_SUPPORTS_WERROR - Success -- Found Libusb: /usr/lib/x86_64-linux-gnu/libusb-1.0.so -- found USB -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'gtk+-3.0' -- Found gtk+-3.0, version 3.18.9 -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for unistd.h -- Looking for unistd.h - found CMake Error at CMakeLists.txt:121 (set_target_properties): set_target_properties called with incorrect number of arguments.
-- Manpage generation disabled -- Debian-based Linux OS detected -- Configuring incomplete, errors occurred! See also "/home/hung/Temp/stlink/build/Release/CMakeFiles/CMakeOutput.log". See also "/home/hung/Temp/stlink/build/Release/CMakeFiles/CMakeError.log". Makefile:42: recipe for target 'build/Release' failed make: *** [build/Release] Error 1
$ rm -rf .git $ make clean $ make -- The C compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- stlink version: 1.5.0 -- Major 1 Minor 5 Patch 0 -- Performing Test C_SUPPORTS_STD_GNU99 -- Performing Test C_SUPPORTS_STD_GNU99 - Success -- Performing Test C_SUPPORTS_WALL -- Performing Test C_SUPPORTS_WALL - Success -- Performing Test C_SUPPORTS_WEXTRA -- Performing Test C_SUPPORTS_WEXTRA - Success -- Performing Test C_SUPPORTS_WSHADOW -- Performing Test C_SUPPORTS_WSHADOW - Success -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 - Success -- Performing Test C_SUPPORTS_FSTRICT_ALIASING -- Performing Test C_SUPPORTS_FSTRICT_ALIASING - Success -- Performing Test C_SUPPORTS_WUNDEF -- Performing Test C_SUPPORTS_WUNDEF - Success -- Performing Test C_SUPPORTS_WFORMAT -- Performing Test C_SUPPORTS_WFORMAT - Success -- Performing Test C_SUPPORTS_WFORMAT_SECURITY -- Performing Test C_SUPPORTS_WFORMAT_SECURITY - Success -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED - Success -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS - Failed -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 - Failed -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION - Success -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS - Success -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Success -- Performing Test C_SUPPORTS_O2 -- Performing Test C_SUPPORTS_O2 - Success -- Performing Test C_SUPPORTS_WERROR -- Performing Test C_SUPPORTS_WERROR - Success -- Found Libusb: /usr/lib/x86_64-linux-gnu/libusb-1.0.so -- found USB -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'gtk+-3.0' -- Found gtk+-3.0, version 3.18.9 -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Manpage generation disabled -- Debian-based Linux OS detected -- Configuring done -- Generating done -- Build files have been written to: /home/hung/Temp/stlink/build/Release [RELEASE] Scanning dependencies of target stlink-static [ 2%] Building C object CMakeFiles/stlink-static.dir/src/chipid.c.o [ 5%] Building C object CMakeFiles/stlink-static.dir/src/common.c.o [ 8%] Building C object CMakeFiles/stlink-static.dir/src/usb.c.o [ 11%] Building C object CMakeFiles/stlink-static.dir/src/sg.c.o [ 14%] Building C object CMakeFiles/stlink-static.dir/src/logging.c.o [ 17%] Building C object CMakeFiles/stlink-static.dir/src/flash_loader.c.o [ 20%] Linking C static library libstlink.a [ 20%] Built target stlink-static Scanning dependencies of target stlink [ 23%] Building C object CMakeFiles/stlink.dir/src/chipid.c.o [ 26%] Building C object CMakeFiles/stlink.dir/src/common.c.o [ 29%] Building C object CMakeFiles/stlink.dir/src/usb.c.o [ 32%] Building C object CMakeFiles/stlink.dir/src/sg.c.o [ 35%] Building C object CMakeFiles/stlink.dir/src/logging.c.o [ 38%] Building C object CMakeFiles/stlink.dir/src/flash_loader.c.o [ 41%] Linking C shared library libstlink.so [ 41%] Built target stlink Scanning dependencies of target st-flash [ 44%] Building C object CMakeFiles/st-flash.dir/src/tools/flash.c.o [ 47%] Building C object CMakeFiles/st-flash.dir/src/tools/flash_opts.c.o [ 50%] Linking C executable st-flash [ 50%] Built target st-flash Scanning dependencies of target st-info [ 52%] Building C object CMakeFiles/st-info.dir/src/tools/info.c.o [ 55%] Linking C executable st-info [ 55%] Built target st-info Scanning dependencies of target st-util [ 58%] Building C object src/gdbserver/CMakeFiles/st-util.dir/gdb-remote.c.o [ 61%] Building C object src/gdbserver/CMakeFiles/st-util.dir/gdb-server.c.o [ 64%] Building C object src/gdbserver/CMakeFiles/st-util.dir/semihosting.c.o [ 67%] Linking C executable st-util [ 67%] Built target st-util Scanning dependencies of target stlink-gui-local [ 70%] Building C object src/tools/gui/CMakeFiles/stlink-gui-local.dir/stlink-gui.c.o [ 73%] Linking C executable stlink-gui-local [ 73%] Built target stlink-gui-local Scanning dependencies of target stlink-gui [ 76%] Building C object src/tools/gui/CMakeFiles/stlink-gui.dir/stlink-gui.c.o [ 79%] Linking C executable stlink-gui [ 79%] Built target stlink-gui Scanning dependencies of target sg [ 82%] Building C object tests/CMakeFiles/sg.dir/sg.c.o [ 85%] Linking C executable sg [ 85%] Built target sg Scanning dependencies of target usb [ 88%] Building C object tests/CMakeFiles/usb.dir/usb.c.o [ 91%] Linking C executable usb [ 91%] Built target usb Scanning dependencies of target flash [ 94%] Building C object tests/CMakeFiles/flash.dir/flash.c.o [ 97%] Building C object tests/CMakeFiles/flash.dir/__/src/tools/flash_opts.c.o [100%] Linking C executable flash [100%] Built target flash