diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | config.h.in | 4 | ||||
-rw-r--r-- | vncviewer/vncviewer.cxx | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5db85c10..252a42c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,11 +35,6 @@ set(BIN_DIR "${CMAKE_INSTALL_PREFIX}") set(DOC_DIR "${CMAKE_INSTALL_PREFIX}") endif() -# Compatibility variables for the migration from autotools -add_definitions(-DPACKAGE_NAME="${CMAKE_PROJECT_NAME}") -add_definitions(-DPACKAGE_VERSION="${VERSION}") -add_definitions(-DLOCALEDIR="${LOCALE_DIR}") - if(MSVC) message(FATAL_ERROR "TigerVNC cannot be built with Visual Studio. Please use MinGW") endif() diff --git a/config.h.in b/config.h.in index 68063c86..faeaffa8 100644 --- a/config.h.in +++ b/config.h.in @@ -1,3 +1,6 @@ +#define PACKAGE_NAME "@CMAKE_PROJECT_NAME@" +#define PACKAGE_VERSION "@VERSION@" + #cmakedefine HAVE_SOCKLEN_T #cmakedefine HAVE_INET_ATON #cmakedefine HAVE_INET_NTOP @@ -23,6 +26,7 @@ #cmakedefine HAVE_PAM #cmakedefine DATA_DIR "@DATA_DIR@" +#cmakedefine LOCALE_DIR "@LOCALE_DIR@" /* MS Visual Studio 2008 and newer doesn't know ssize_t */ #if defined(HAVE_GNUTLS) && defined(WIN32) && !defined(__MINGW32__) diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index 1f6fca56..ff325d13 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -273,7 +273,7 @@ int main(int argc, char** argv) "See http://www.tigervnc.org for information on TigerVNC."); setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE_NAME, LOCALEDIR); + bindtextdomain(PACKAGE_NAME, LOCALE_DIR); textdomain(PACKAGE_NAME); rfb::SecurityClient::setDefaults(); |