From c6ee3fef8d9f725477c67c8dbc658535a0f5ef75 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 19 Aug 2014 09:13:20 -0700 Subject: [PATCH] Fixed install path --- share/openbr/cmake/FindStasm4.cmake | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/share/openbr/cmake/FindStasm4.cmake b/share/openbr/cmake/FindStasm4.cmake index eb919c8..564e68b 100644 --- a/share/openbr/cmake/FindStasm4.cmake +++ b/share/openbr/cmake/FindStasm4.cmake @@ -25,12 +25,19 @@ endforeach() find_path(Stasm_DIR stasm/stasm_lib.h ${CMAKE_SOURCE_DIR}/3rdparty/*) +set(CMAKE_ARGS "${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX:PATH=<${Stasm_DIR}") + +message(${CMAKE_ARGS}) + ExternalProject_Add(stasm URL ${Stasm_DIR} - CMAKE_ARGS ${CMAKE_ARGS} + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= ) ExternalProject_Get_Property(stasm install_dir) -include_directories(${install_dir}/src/stasm-build/Stasm_DIR/build/install/include) -file(GLOB Stasm4_LIBS ${install_dir}/src/stasm-build/Stasm_DIR/build/install/lib/*) +message(${install_dir}) + +include_directories(${install_dir}/include/stasm) + +file(GLOB Stasm4_LIBS ${install_dir}/lib/*) -- libgit2 0.21.4