File tree Expand file tree Collapse file tree 2 files changed +2
-44
lines changed Expand file tree Collapse file tree 2 files changed +2
-44
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ if(NOT Cubature_GIT_TAG)
14
14
set (Cubature_GIT_TAG master )
15
15
endif ()
16
16
17
+ set (Cubature_DIR "${CMAKE_INSTALL_PREFIX} /external" )
17
18
ExternalProject_Add (
18
19
Lookup-Cubature
19
20
GIT_REPOSITORY ${Cubature_GIT_REPOSITORY}
20
21
GIT_TAG ${Cubature_GIT_TAG}
21
22
PREFIX "${CMAKE_BINARY_DIR} /external"
22
23
#INSTALL_DIR ${EXTERNAL_ROOT}
23
24
CMAKE_ARGS
24
- -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/external
25
+ -DCMAKE_INSTALL_PREFIX=${Cubature_DIR}
25
26
-DCMAKE_INSTALL_LIBDIR=${CMAKE_SHARED_LIBRARY_PREFIX}
26
27
# Wrap download, configure and build steps in a script to log output
27
28
UPDATE_COMMAND ""
@@ -30,8 +31,6 @@ ExternalProject_Add(
30
31
LOG_BUILD ON
31
32
LOG_INSTALL ON
32
33
)
33
- ExternalProject_Get_Property (Lookup-Cubature install_dir )
34
- set (Cubature_DIR "${install_dir} " )
35
34
set (Cubature_INCLUDE_DIR "${Cubature_DIR} /include" )
36
35
set (Cubature_LIBRARY_DIR "${Cubature_DIR} /${CMAKE_SHARED_LIBRARY_PREFIX} " )
37
36
set (Cubature_LIBRARIES "cubature" )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments