Skip to content

Commit

Permalink
Remove LANGUAGEDIR definition.
Browse files Browse the repository at this point in the history
The language files are installed into
  [prefix]/share/qucs/lang
regardless of the definition of LANGUAGEDIR.
  • Loading branch information
guitorri authored and in3otd committed Apr 8, 2016
1 parent 82a0459 commit aac603b
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 42 deletions.
1 change: 0 additions & 1 deletion qucs/config.h.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#cmakedefine LANGUAGEDIR "@LANGUAGEDIR@"

#define PACKAGE_VERSION "@PROJECT_VERSION@"
#define PACKAGE_STRING "qucs @PROJECT_VERSION@"
Expand Down
6 changes: 0 additions & 6 deletions qucs/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -764,12 +764,6 @@ mingw* | *msys* | cygwin*)
esac
AC_SUBST(PATHXFORM)

dnl Create path info.
LANG_PATH="$prefix/share/qucs/lang/"
AC_DEFINE_UNQUOTED([LANGUAGEDIR], ["$LANG_PATH"],
[Where the language files go.])
unset LANG_PATH

dnl Definitions at top of <config.h>.
AH_TOP([
/* __BEGIN_DECLS should be used at the beginning of your declarations,
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-activefilter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ IF(NOT WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-register ")
ENDIF()

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

#configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-attenuator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-edit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
2 changes: 0 additions & 2 deletions qucs/qucs-filter-v2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ PROJECT(qucsfilter-v2 CXX C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
cmake_policy(VERSION 2.6)

SET(LANGUAGEDIR TRUE)

SET(CMAKE_BUILD_TYPE Debug)

# The incomplete filter-v2 only builds withs -stdlib=libstc++
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-filter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-help/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-rescodes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs-transcalc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ SET(CMAKE_BUILD_TYPE Debug)

ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

# configure the header config.h
CONFIGURE_FILE (
"${PROJECT_SOURCE_DIR}/../config.h.cmake"
Expand Down
4 changes: 0 additions & 4 deletions qucs/qucs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ endif()
#
ADD_DEFINITIONS( -DHAVE_CONFIG_H )

# define variables
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")


FIND_PACKAGE( Qt4 4.6.3 REQUIRED QtCore QtGui Qt3Support QtSvg QtXml QtScript)
INCLUDE( ${QT_USE_FILE} )

Expand Down
6 changes: 1 addition & 5 deletions qucs/translations/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,9 @@ ENDIF (UPDATE_TRANSLATIONS)
#
#FILE(GLOB QtTRANSLATIONS qtgeneric_*.ts)

#
# location for translations
SET(LANGUAGEDIR "${CMAKE_INSTALL_PREFIX}/share/qucs/lang/")

#
# install tranlations
INSTALL( FILES ${QM_FILES} DESTINATION ${LANGUAGEDIR})
INSTALL( FILES ${QM_FILES} DESTINATION share/qucs/lang)

# prevent the generated files from being deleted during make clean
#set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM true)

0 comments on commit aac603b

Please sign in to comment.