Skip to content

Commit

Permalink
Add missing header algorithm include
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Nov 13, 2024
1 parent 0acdfe5 commit 1df8013
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
18 changes: 8 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
set(CMAKE_INSTALL_RPATH "@executable_path/../${CMAKE_INSTALL_LIBDIR}")
endif()

# ---- Configure ---------------------------------------------------------------
# ---- CONFIGURE ---------------------------------------------------------------

include(TestBigEndian)

Expand Down Expand Up @@ -71,7 +71,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/Doxyfile ${CMAKE_CURRENT
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/README.md ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/configure/version.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/kernel/version.cpp)

# ---- Target basis ------------------------------------------------------------
# ---- TARGET basis ------------------------------------------------------------

file(GLOB ${PROJECT_NAME}_BASIS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/basis/*.ss)

Expand All @@ -98,7 +98,7 @@ set_target_properties(basis PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR}
LINK_FLAGS_RELEASE -s)

# ---- Target kernel -----------------------------------------------------------
# ---- TARGET kernel -----------------------------------------------------------

add_library(kernel SHARED)

Expand All @@ -124,7 +124,7 @@ set_target_properties(kernel PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR}
LINK_FLAGS_RELEASE -s)

# ---- Target shell ------------------------------------------------------------
# ---- TARGET shell ------------------------------------------------------------

add_executable(shell)

Expand All @@ -136,16 +136,14 @@ set_target_properties(shell PROPERTIES
OUTPUT_NAME ${PROJECT_NAME} # Rename shell => meevax
LINK_FLAGS_RELEASE -s)

# ---- CMake Package -----------------------------------------------------------
# ---- TARGET install ----------------------------------------------------------

include(CMakePackageConfigHelpers)

write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
COMPATIBILITY SameMajorVersion)

# ---- Target install ----------------------------------------------------------

install( # /usr/lib/libmeevax
TARGETS basis kernel
EXPORT ${PROJECT_NAME}-config
Expand All @@ -171,7 +169,7 @@ install( # /usr/share/meevax/meevax-config-version.cmake
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})

# ---- Target package ----------------------------------------------------------
# ---- TARGET package ----------------------------------------------------------

if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
Expand All @@ -183,7 +181,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
include(CPack)
endif()

# ---- Target test -------------------------------------------------------------
# ---- TARGET test -------------------------------------------------------------

enable_testing()

Expand Down Expand Up @@ -218,7 +216,7 @@ foreach(EACH IN LISTS ${PROJECT_NAME}_TEST_SH)
add_test(NAME ${FILENAME} COMMAND ${${PROJECT_NAME}_MEMORY_CHECK} ${EACH} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/meevax)
endforeach()

# ---- Additional Targets ------------------------------------------------------
# ---- TARGET continuous-integration -------------------------------------------

if(CMAKE_SYSTEM_NAME STREQUAL Linux)
execute_process(COMMAND nproc OUTPUT_VARIABLE ${PROJECT_NAME}_NPROC)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Procedures for each standard are provided by the following R7RS-style libraries:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.5.261_amd64.deb
sudo apt install build/meevax_0.5.262_amd64.deb
```

or
Expand Down Expand Up @@ -122,9 +122,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.5.261.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.5.262.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.5.261_amd64.deb`
| `package` | Generate debian package `meevax_0.5.262_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.261
0.5.262
1 change: 1 addition & 0 deletions include/meevax/memory/integer_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef INCLUDED_MEEVAX_MEMORY_INTEGER_SET_HPP
#define INCLUDED_MEEVAX_MEMORY_INTEGER_SET_HPP

#include <algorithm>
#include <cassert>
#include <climits> // CHAR_BIT
#include <cstdint>
Expand Down

0 comments on commit 1df8013

Please sign in to comment.