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)