Skip to content

Commit

Permalink
Removed HPCombi-Config system
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Oct 28, 2023
1 parent a9db482 commit 63a54cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ IF (BUILD_TESTING)
ENDIF(BUILD_TESTING)

#####################
# config.h file stuff
configure_file(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/HPCombi-config.h)
# Is this needed ?
configure_file(${CMAKE_SOURCE_DIR}/.VERSION.in ${CMAKE_BINARY_DIR}/.VERSION)

set(AUTOGENERATED_WARNING "WARNING: THIS IS A CMAKE AUTO-GENERATED FILE.")
Expand All @@ -149,9 +148,6 @@ endforeach(f)

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/.VERSION DESTINATION ".")

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/HPCombi-config.h
DESTINATION include/${CMAKE_PROJECT_NAME})

install (
DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION include/${CMAKE_PROJECT_NAME}
Expand Down
17 changes: 0 additions & 17 deletions config.h.in

This file was deleted.

4 changes: 4 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ include (CheckIncludeFileCXX)
check_include_file_cxx("sparsehash/dense_hash_map" HPCOMBI_HAVE_DENSEHASHMAP)
if (NOT HPCOMBI_HAVE_DENSEHASHMAP)
message(STATUS "Google 'dense_hash_map' not found, using std::unordered_map")
else()
add_compile_definitions(HPCOMBI_HAVE_DENSEHASHMAP)
endif()
check_include_file_cxx("sparsehash/dense_hash_set" HPCOMBI_HAVE_DENSEHASHSET)
if (NOT HPCOMBI_HAVE_DENSEHASHSET)
message(STATUS "Google 'dense_hash_set' not found, using std::unordered_set")
else()
add_compile_definitions(HPCOMBI_HAVE_DENSEHASHSET)
endif()

include_directories(${CMAKE_SOURCE_DIR}/include ${PROJECT_BINARY_DIR})
Expand Down
4 changes: 0 additions & 4 deletions include/epu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
#include <type_traits>
#include <utility> // integer_sequences

#ifdef HPCOMBI_HAVE_CONFIG
#include "HPCombi-config.h"
#endif

#include "vect_generic.hpp"

#include "simde/x86/sse4.1.h"
Expand Down

0 comments on commit 63a54cc

Please sign in to comment.