Skip to content

Commit

Permalink
setting version works on macOS this way
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Jun 17, 2019
1 parent 04c8634 commit d555c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -141,7 +141,7 @@ set_property( SOURCE ${QRC_FILES_CPP} PROPERTY SKIP_AUTOMOC ON )
qt5_add_translation( QM_FILES ${TS_FILES} )

# Define the PageEdit version string for use in source files
#set_source_files_properties( pageedit_constants.cpp PROPERTIES COMPILE_DEFINITIONS PAGEEDIT_FULL_VERSION="${PAGEEDIT_FULL_VERSION}" )
set_source_files_properties( pageedit_constants.cpp PROPERTIES COMPILE_DEFINITIONS PAGEEDIT_FULL_VERSION="${PAGEEDIT_FULL_VERSION}" )

set( ALL_SOURCES ${SOURCE_FILES} ${HEADER_FILES} ${UI_FILES_H} ${QRC_FILES_CPP} ${QM_FILES} )

Expand Down
2 changes: 1 addition & 1 deletion pageedit_constants.cpp
Expand Up @@ -3,7 +3,7 @@
#include "pageedit_constants.h"

// Use compile-time define from CMake file to limit version to one location in the source.
const QString PAGEEDIT_VERSION = "0.7.0";
const QString PAGEEDIT_VERSION = QString(PAGEEDIT_FULL_VERSION);

#if _WIN32
#include <QProcessEnvironment>
Expand Down

0 comments on commit d555c6a

Please sign in to comment.