Skip to content

Commit

Permalink
Remove arched bits from version.cmake-file (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 authored and agaida committed Jan 7, 2017
1 parent 52be0b3 commit 137bc9a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Expand Up @@ -101,10 +101,10 @@ configure_file(
)

# The package version file is common to superbuild and installable mode
write_basic_package_version_file(
"${CMAKE_BINARY_DIR}/lxqt-build-tools-config-version.cmake"
VERSION ${LXQT_BUILD_TOOLS_VERSION}
COMPATIBILITY AnyNewerVersion
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/lxqt-build-tools-config-version.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/lxqt-build-tools-config-version.cmake"
@ONLY
)

install(FILES
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -18,4 +18,4 @@ To build run `make`, to install `make install` which accepts variable `DESTDIR`

## Packagers

Please keep in mind that lxqt-build-tools are arch dependend - the package picks up **32/64bit-ness** at build time of the package - so the package has to be built for the respective architecture, arch: all will **not** fly.
This package is arch-independent now. You can simply package it as `BuildArch: noarch` (rpm) or `arch: all` (deb).
10 changes: 10 additions & 0 deletions lxqt-build-tools-config-version.cmake.in
@@ -0,0 +1,10 @@
set(PACKAGE_VERSION "@LXQT_BUILD_TOOLS_VERSION@")

if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()

0 comments on commit 137bc9a

Please sign in to comment.