Skip to content

Commit

Permalink
futhre fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wistaria committed Nov 21, 2022
1 parent bc75bdc commit a7c6986
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ gen_cfg_main()
# Create the main *.hpp config file
gen_main_hpp_config()
# create module file for lmod manager
configure_file("${PROJECT_SOURCE_DIR}/common/misc/alpscore.lmod.in" "${CMAKE_BINARY_DIR}/alpscore.lmod")
configure_file("${PROJECT_SOURCE_DIR}/common/misc/alpscore.lmod.in" "${PROJECT_BINARY_DIR}/alpscore.lmod")

6 changes: 3 additions & 3 deletions common/cmake/ALPSCommonModuleDefinitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ endif()

# add includes and libs for each module
macro(alps_add_module module module_path)
set(${module}_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/${module_path}/include ${CMAKE_BINARY_DIR}/${module_path}/include)
set(${module}_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/${module_path}/include ${PROJECT_BINARY_DIR}/${module_path}/include)
set(${module}_LIBRARIES ${module})
endmacro(alps_add_module)

Expand Down Expand Up @@ -284,8 +284,8 @@ macro(gen_documentation)
endmacro(gen_documentation)

function(gen_main_hpp_config)
configure_file("${PROJECT_SOURCE_DIR}/utilities/include/config.hpp.in" "${CMAKE_BINARY_DIR}/utilities/include/alps/config.hpp")
install(FILES "${CMAKE_BINARY_DIR}/utilities/include/alps/config.hpp" DESTINATION include/alps)
configure_file("${PROJECT_SOURCE_DIR}/utilities/include/config.hpp.in" "${PROJECT_BINARY_DIR}/utilities/include/alps/config.hpp")
install(FILES "${PROJECT_BINARY_DIR}/utilities/include/alps/config.hpp" DESTINATION include/alps)
endfunction(gen_main_hpp_config)

macro(gen_pkg_config)
Expand Down
2 changes: 1 addition & 1 deletion common/cmake/ALPSEnableEigen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function(add_eigen)
message(STATUS "eigen requested")

if (NOT ALPS_EIGEN_UNPACK_DIR)
set(ALPS_EIGEN_UNPACK_DIR "${CMAKE_BINARY_DIR}/eigen")
set(ALPS_EIGEN_UNPACK_DIR "${PROJECT_BINARY_DIR}/eigen")
endif()
if (NOT ALPS_EIGEN_TGZ_FILE)
set(ALPS_EIGEN_TGZ_FILE "${ALPS_EIGEN_UNPACK_DIR}/eigen.tgz")
Expand Down

0 comments on commit a7c6986

Please sign in to comment.