I have made some changes in the fixing_1675 branch which will hopefully be 
merged to master sometime soon.

The project(hpx) has been changed to the project(HPX), a case change in the 
declaration of the cmake project. This fixes some inconsistencies related to 
find_package and the generation of HPXConfig.cmake + friends.

In short, when you build or install HPX you will get
lib/cmake/HPX/HPXConfig.cmake
instead of
lib/cmake/hpx/HPXConfig.cmake

so you might need to change scripts that use it to
HPX_DIR=/prefix/lib/cmake/HPX (instead of the lowercase hpx)

however, you can use either of
cmake -DCMAKE_PREFIX_PATH=<hpx install> <other options> /src/path/to/hpx
cmake -DCMAKE_PREFIX_PATH=<hpx build> <other options> /src/path/to/hpx
and the lib/cmake/HPX is not necessary at all as these will be searched 
automatically by find_package in your project using HPX.

[
Note
You can put paths to several projects in CMAKE_PREFIX_PATH like 
-DCMAKE_PREFIX_PATH="<hpx build>;<vtkm build>;<another install>; ... instead of 
putting them all into individual variables when you need to specify many 
project paths (assuming they use cmake config files) as part of a complex build
  -DHPX_DIR=~/build/hpx \
  -DVTKm_DIR=~/build/vtkm/ etc etc
]

You should always use
find_package(HPX)
and never
find_package(hpx)

There may be unintended consequences of this change that I have not seen, so 
although I do not believe this will break anything, please let me know if you 
find anything unusual that looks related - a number of changes in the cmake 
code were necessary which might have knock on effects.

JB



--
John Biddiscombe,                        email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82

_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to