From 09d69b9bb49d813c1bc1ffda73c546190e4a2ace Mon Sep 17 00:00:00 2001 From: Johannes Paehr Date: Fri, 21 Dec 2018 12:59:31 +0100 Subject: [PATCH] FIX: now also ubuntu recognizes output as binary --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1fa3d6..ff1b2fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,9 @@ set(CMAKE_AUTOUIC ON) # uncomment for ATMega based version (needs usb library) #add_definitions(-DATMEGA) +# add -no-pie flag +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie") + # Find the QtWidgets library find_package(Qt5Widgets CONFIG REQUIRED)