Skip to content

Commit

Permalink
Reorganize cmake files into dedicated cmake directory
Browse files Browse the repository at this point in the history
Signed-off-by: Brenden Blanco <[email protected]>
  • Loading branch information
Brenden Blanco committed Sep 4, 2015
1 parent 5d89d5f commit 974e891
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set(CMAKE_BUILD_TYPE Release)

enable_testing()

include(scripts/GetGitRevisionDescription.cmake)
include(cmake/GetGitRevisionDescription.cmake)
include(cmake/version.cmake)
get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
if(LIB64)
set(LIBSUFFIX 64)
Expand Down Expand Up @@ -45,7 +46,6 @@ set(CMAKE_C_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
endif()

add_subdirectory(scripts)
add_subdirectory(examples)
add_subdirectory(src)
add_subdirectory(tests)
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions scripts/CMakeLists.txt → cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ endif()

# strip leading 'v', and make unique for the tag
message(STATUS "Revision is ${REVISION}")
set(REVISION "${REVISION}" PARENT_SCOPE)
# rpm/deb packaging uses this, only works on whole tag numbers
string(SUBSTRING "${GIT_TAG_LAST}" 1 -1 REVISION_LAST)
set(REVISION_LAST "${REVISION_LAST}" PARENT_SCOPE)

0 comments on commit 974e891

Please sign in to comment.