mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #2063 from HunterBelanger/fix_version_header_fetch_content
Fixes missing version.h when getting OpenMC through FetchContent
This commit is contained in:
commit
1be02f90bd
2 changed files with 7 additions and 1 deletions
|
|
@ -394,7 +394,8 @@ target_include_directories(libopenmc
|
|||
target_compile_options(libopenmc PRIVATE ${cxxflags})
|
||||
|
||||
# Add include directory for configured version file
|
||||
target_include_directories(libopenmc PRIVATE ${CMAKE_BINARY_DIR}/include)
|
||||
target_include_directories(libopenmc
|
||||
PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>)
|
||||
|
||||
if (HDF5_IS_PARALLEL)
|
||||
target_compile_definitions(libopenmc PRIVATE -DPHDF5)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
#ifndef OPENMC_VERSION_H
|
||||
#define OPENMC_VERSION_H
|
||||
|
||||
#include "openmc/array.h"
|
||||
|
||||
namespace openmc {
|
||||
|
|
@ -12,3 +15,5 @@ constexpr std::array<int, 3> VERSION {VERSION_MAJOR, VERSION_MINOR, VERSION_RELE
|
|||
// clang-format on
|
||||
|
||||
} // namespace openmc
|
||||
|
||||
#endif // OPENMC_VERSION_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue