diff --git a/CMakeLists.txt b/CMakeLists.txt index 28f917956a..3f0d4807aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 $) if (HDF5_IS_PARALLEL) target_compile_definitions(libopenmc PRIVATE -DPHDF5) diff --git a/include/openmc/version.h.in b/include/openmc/version.h.in index 2933746e2f..e1c2b0541a 100644 --- a/include/openmc/version.h.in +++ b/include/openmc/version.h.in @@ -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 VERSION {VERSION_MAJOR, VERSION_MINOR, VERSION_RELE // clang-format on } // namespace openmc + +#endif // OPENMC_VERSION_H