Skip to content

Commit

Permalink
Define POMEROL_VERSION macro in first_include.h
Browse files Browse the repository at this point in the history
  • Loading branch information
krivenko committed Jul 10, 2017
1 parent 1f180ff commit a1d7f4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ message ("\n${PROJECT_NAME} configuration\n")
string(TOUPPER ${PROJECT_NAME} PROJECT_CAPNAME)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(POMEROL_VERSION 1.0) #Remove?
set(POMEROL_VERSION 1.2)
include(CommonDefs)

no_source_builds()
Expand Down Expand Up @@ -48,7 +48,7 @@ else(POMEROL_USE_OPENMP)
endif(POMEROL_USE_OPENMP)

configure_file("${PROJECT_SOURCE_DIR}/include/pomerol/first_include.h.in" "${PROJECT_BINARY_DIR}/include/pomerol/first_include.h")
install(FILES "${PROJECT_BINARY_DIR}/include/pomerol/first_include.h" DESTINATION include/pomerol)
install(FILES "${PROJECT_BINARY_DIR}/include/pomerol/first_include.h" DESTINATION include/pomerol)

set (pomerol_sources
mpi_dispatcher/mpi_dispatcher
Expand Down
2 changes: 1 addition & 1 deletion include/mpi_dispatcher/mpi_dispatcher.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** \file include/mpi_dispatcher/mpi_dispatcher.hpp
** \brief Implementation of a master-slave computation using unbloced MPI Communication that allows to utilize
** \brief Implementation of a master-slave computation using unblocked MPI Communication that allows to utilize
** master as a computation node
*/

Expand Down
3 changes: 3 additions & 0 deletions include/pomerol/first_include.h.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#ifndef __INCLUDE_FIRST_INCLUDE_H_a83f82k

// Pomerol version
#define POMEROL_VERSION "@POMEROL_VERSION@"

// openmp
#cmakedefine POMEROL_USE_OPENMP

Expand Down

0 comments on commit a1d7f4c

Please sign in to comment.