summaryrefslogtreecommitdiff
path: root/ldmicro/CMakeLists.txt
diff options
context:
space:
mode:
authorakshay-c2019-05-16 10:41:48 +0530
committerakshay-c2019-05-16 10:41:48 +0530
commit3f7c4198a528cda5f027d26d103a8b228e82474b (patch)
tree4791c99ced6788bd662629d9d6ed6638c28d7be9 /ldmicro/CMakeLists.txt
parent6435315d982440fed60c8a9487f4de20296ccb2f (diff)
downloadLDmicroQt-3f7c4198a528cda5f027d26d103a8b228e82474b.tar.gz
LDmicroQt-3f7c4198a528cda5f027d26d103a8b228e82474b.tar.bz2
LDmicroQt-3f7c4198a528cda5f027d26d103a8b228e82474b.zip
Fixed Menu Keyboard Shortcuts issue for Vidyut running Ubuntu14 and compile successful message box
Diffstat (limited to 'ldmicro/CMakeLists.txt')
-rw-r--r--ldmicro/CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/ldmicro/CMakeLists.txt b/ldmicro/CMakeLists.txt
index 66cd49c..12fb4e5 100644
--- a/ldmicro/CMakeLists.txt
+++ b/ldmicro/CMakeLists.txt
@@ -30,6 +30,18 @@ IF(UNIX)
add_definitions ("-g")
add_definitions(-D__UNIX__)
add_definitions(-DLDLANG_EN)
+ execute_process(COMMAND lsb_release -cs
+ OUTPUT_VARIABLE RELEASE_CODENAME
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+ STRING(TOLOWER ${RELEASE_CODENAME} RELEASE_LOWER)
+ message("-- os_version_suffix:${RELEASE_CODENAME}")
+ if(${RELEASE_LOWER} MATCHES "trusty")
+ MESSAGE("Add flag to compile for Ubuntu 14")
+ add_definitions(-D__UBUNTU_14_)
+ else()
+ MESSAGE("Add flag to compile for Ubuntu 16 and above")
+ add_definitions(-D__UBUNTU_16_)
+ endif()
use_cxx14()
# set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/build/")
@@ -125,7 +137,7 @@ endif()
compilecommon.cpp
intcode.cpp
lang.cpp
- miscutil.cpp #add message boxes to Error(), CompileSuccessfulMessage()
+ miscutil.cpp
iolist.cpp
confdialog.cpp
lutdialog.cpp