Commit c6ee3fef8d9f725477c67c8dbc658535a0f5ef75
1 parent
9926eba5
Fixed install path
Showing
1 changed file
with
10 additions
and
3 deletions
share/openbr/cmake/FindStasm4.cmake
| @@ -25,12 +25,19 @@ endforeach() | @@ -25,12 +25,19 @@ endforeach() | ||
| 25 | 25 | ||
| 26 | find_path(Stasm_DIR stasm/stasm_lib.h ${CMAKE_SOURCE_DIR}/3rdparty/*) | 26 | find_path(Stasm_DIR stasm/stasm_lib.h ${CMAKE_SOURCE_DIR}/3rdparty/*) |
| 27 | 27 | ||
| 28 | +set(CMAKE_ARGS "${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=<${Stasm_DIR}") | ||
| 29 | + | ||
| 30 | +message(${CMAKE_ARGS}) | ||
| 31 | + | ||
| 28 | ExternalProject_Add(stasm | 32 | ExternalProject_Add(stasm |
| 29 | URL ${Stasm_DIR} | 33 | URL ${Stasm_DIR} |
| 30 | - CMAKE_ARGS ${CMAKE_ARGS} | 34 | + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> |
| 31 | ) | 35 | ) |
| 32 | 36 | ||
| 33 | ExternalProject_Get_Property(stasm install_dir) | 37 | ExternalProject_Get_Property(stasm install_dir) |
| 34 | -include_directories(${install_dir}/src/stasm-build/Stasm_DIR/build/install/include) | ||
| 35 | 38 | ||
| 36 | -file(GLOB Stasm4_LIBS ${install_dir}/src/stasm-build/Stasm_DIR/build/install/lib/*) | 39 | +message(${install_dir}) |
| 40 | + | ||
| 41 | +include_directories(${install_dir}/include/stasm) | ||
| 42 | + | ||
| 43 | +file(GLOB Stasm4_LIBS ${install_dir}/lib/*) |