3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 20:34:38 +01:00

[cmake] Consistently use PROJECT_SOURCE_DIR over CMAKE_SOURCE_DIR

This commit is contained in:
Nils Wentzell 2019-06-26 11:35:52 -04:00
parent b0bb95d61e
commit d02eff9ce3
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ target_link_libraries(app4triqs_c PUBLIC triqs PRIVATE project_warnings)
# Configure compilation # Configure compilation
target_compile_options(app4triqs_c PUBLIC -fPIC) target_compile_options(app4triqs_c PUBLIC -fPIC)
target_include_directories(app4triqs_c PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/c++>) target_include_directories(app4triqs_c PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/c++>)
target_compile_definitions(app4triqs_c PUBLIC target_compile_definitions(app4triqs_c PUBLIC
APP4TRIQS_GIT_HASH=${APP4TRIQS_GIT_HASH} APP4TRIQS_GIT_HASH=${APP4TRIQS_GIT_HASH}
TRIQS_GIT_HASH=${TRIQS_GIT_HASH} TRIQS_GIT_HASH=${TRIQS_GIT_HASH}

View File

@ -49,7 +49,7 @@ macro(generate_docs header_file)
) )
endmacro(generate_docs) endmacro(generate_docs)
generate_docs(${CMAKE_SOURCE_DIR}/c++/app4triqs/toto.hpp) generate_docs(${PROJECT_SOURCE_DIR}/c++/app4triqs/toto.hpp)
# --------------------------------- # ---------------------------------
# Install # Install

View File

@ -24,7 +24,7 @@ copyright = u'2017-2018 N. Wentzell, O. Parcollet 2018-2019 The Simons Foundatio
version = '@APP4TRIQS_VERSION@' version = '@APP4TRIQS_VERSION@'
mathjax_path = "@TRIQS_MATHJAX_PATH@/MathJax.js?config=default" mathjax_path = "@TRIQS_MATHJAX_PATH@/MathJax.js?config=default"
templates_path = ['@CMAKE_SOURCE_DIR@/doc/_templates'] templates_path = ['@PROJECT_SOURCE_DIR@/doc/_templates']
html_theme = 'triqs' html_theme = 'triqs'
html_theme_path = ['@TRIQS_THEMES_PATH@'] html_theme_path = ['@TRIQS_THEMES_PATH@']
@ -35,7 +35,7 @@ html_context = {'header_title': 'app4triqs',
['Documentation', 'documentation'], ['Documentation', 'documentation'],
['Issues', 'issues'], ['Issues', 'issues'],
['About app4triqs', 'about']]} ['About app4triqs', 'about']]}
html_static_path = ['@CMAKE_SOURCE_DIR@/doc/_static'] html_static_path = ['@PROJECT_SOURCE_DIR@/doc/_static']
html_sidebars = {'index': ['sideb.html', 'searchbox.html']} html_sidebars = {'index': ['sideb.html', 'searchbox.html']}
htmlhelp_basename = 'APP4TRIQSdoc' htmlhelp_basename = 'APP4TRIQSdoc'