Skip to content

Commit

Permalink
Correction to 4c9541f, update cpp2py
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Nov 28, 2018
1 parent 9802e39 commit f9974df
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ endif (Build_Documentation)
#-----------------------------------------------
# Install the FindXXX that should be exported
#-----------------------------------------------
install (FILES cmake/FindNFFT.cmake cmake/FindTest.cmake DESTINATION share/cmake/Modules)
install (FILES cmake/FindNFFT.cmake cmake/FindTest.cmake DESTINATION lib/cmake/triqs)

#---------------------------------------
# triqs_config.h
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ ENV SRC=/src \
BUILD=/home/build \
INSTALL=/usr/local \
PYTHONPATH=/usr/local/lib/python2.7/site-packages:${PYTHONPATH} \
CMAKE_PREFIX_PATH=/usr/local/share/cmake:${CMAKE_PREFIX_PATH}
CMAKE_PREFIX_PATH=/usr/lib/cmake/triqs:${CMAKE_PREFIX_PATH}

# cpp2py: use a fixed revision to ensure we have the right one (alternatively could make this a submodule or upstream project)
RUN git clone https://github.com/TRIQS/cpp2py $SRC/cpp2py && cd $SRC/cpp2py && git checkout 40321e951e59b11a23715a7435f41bbf07904975
RUN git clone https://github.com/TRIQS/cpp2py $SRC/cpp2py && cd $SRC/cpp2py && git checkout 3aadda8359fc6569e3d0bd2b472cb93666bc4f10
WORKDIR ${BUILD}/cpp2py
RUN cmake $SRC/cpp2py -DCMAKE_INSTALL_PREFIX=$INSTALL -DCLANG_OPT="$CXXFLAGS" && make
RUN make install
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
"C_INCLUDE_PATH=${env.BREW}/include",
"CPLUS_INCLUDE_PATH=$installDir/include:${env.BREW}/include",
"LIBRARY_PATH=$installDir/lib:${env.BREW}/lib",
"CMAKE_PREFIX_PATH=$installDir/share/cmake"]) {
"CMAKE_PREFIX_PATH=$installDir/lib/cmake/triqs"]) {
deleteDir()
sh """#!/bin/bash -ex
virtualenv $installDir
Expand Down
6 changes: 3 additions & 3 deletions cmake/FindTriqsTest.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ macro(triqs_add_cpp_test testname)
-Dname=${testname_}${ARGN}
-Dcmd=${testcmd}
-Dreference=${testref}
-P @CMAKE_INSTALL_PREFIX@/share/cmake/run_test.cmake
-P @CMAKE_INSTALL_PREFIX@/lib/cmake/triqs/run_test.cmake
)
else()
add_test(${testname_}${ARGN} ${testcmd})
Expand Down Expand Up @@ -63,15 +63,15 @@ macro(triqs_add_python_test testname)
-Dcmd=${testcmd}
-Dinput=${CMAKE_CURRENT_SOURCE_DIR}/${testname}.py
-Dreference=${testref}
-P @CMAKE_INSTALL_PREFIX@/share/cmake/run_test.cmake
-P @CMAKE_INSTALL_PREFIX@/lib/cmake/triqs/run_test.cmake
)
else()
add_test(${testname_}
${CMAKE_COMMAND}
-Dname=${testname_}
-Dcmd=${testcmd}
-Dinput=${CMAKE_CURRENT_SOURCE_DIR}/${testname}.py
-P @CMAKE_INSTALL_PREFIX@/share/cmake/run_test.cmake
-P @CMAKE_INSTALL_PREFIX@/lib/cmake/triqs/run_test.cmake
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion cmake/TRIQSConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ list(APPEND CMAKE_MODULE_PATH ${TRIQS_ROOT}/share/cmake/Modules)
set(TRIQS_WITH_PYTHON_SUPPORT @TRIQS_WITH_PYTHON_SUPPORT@)

# include the exported targets of this project
include(@CMAKE_INSTALL_PREFIX@/share/cmake/triqs-targets.cmake)
include(@CMAKE_INSTALL_PREFIX@/lib/cmake/triqs/triqs-targets.cmake)

MESSAGE(STATUS "Found TRIQSConfig.cmake with version ${TRIQS_VERSION}, hash = ${TRIQS_GIT_HASH}")

Expand Down
2 changes: 1 addition & 1 deletion doc/tutorials/using_the_lib/triqs_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ OK, our project will be just one :file:`main.cpp` file, e.g.::
As you can see, the code includes headers from TRIQS. Along with
:file:`main.cpp` we write a :file:`CMakeLists.txt` file to compile our project.
In order to make this easy, there is a file called :file:`TRIQSConfig.cmake`
in :file:`/home/triqs/install/share/cmake`. Including this file in
in :file:`/home/triqs/install/lib/cmake/triqs`. Including this file in
your :file:`CMakeLists.txt` automatically defines a certain number of useful
variables, especially the include directories related to the TRIQS headers and
the location of the TRIQS libraries. Here is what your simple
Expand Down
2 changes: 1 addition & 1 deletion triqs.modulefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ prepend-path CPLUS_INCLUDE_PATH $root/include
prepend-path LIBRARY_PATH $root/lib
prepend-path LD_LIBRARY_PATH $root/lib
prepend-path PYTHONPATH $root/@CPP2PY_PYTHON_LIB_DEST_ROOT@
prepend-path CMAKE_PREFIX_PATH $root/share/cmake
prepend-path CMAKE_PREFIX_PATH $root/lib/cmake/triqs
2 changes: 1 addition & 1 deletion triqs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ target_include_directories(triqs SYSTEM INTERFACE ${CMAKE_INSTALL_PREFIX}/includ

# Install the library in lib and prepare an exported cmake file to reimport it
install(TARGETS triqs DESTINATION lib EXPORT triqs-targets)
install(EXPORT triqs-targets DESTINATION share/cmake)
install(EXPORT triqs-targets DESTINATION lib/cmake/triqs)

# Install headers
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h" PATTERN "*.hxx" PATTERN "*.mako.*" EXCLUDE)

0 comments on commit f9974df

Please sign in to comment.