Skip to content

Commit

Permalink
LibPackage: fixed install path configuration switch
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaulweber committed Oct 11, 2018
1 parent a66b5ff commit e7ed001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cmake/LibPackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function( package_git_submodule PREFIX VERSION MODE TMP ) # ${ARGN} search paths
set( ${PREFIX}_REPO_DIR ${PROJECT_SOURCE_DIR}/${PREFIX_PATH} )
set( ${PREFIX}_MAKE_DIR ${${PREFIX}_REPO_DIR}/${TMP} )

if( "${CMAKE_INSTALL_PREFIX}" STREQUAL "" )
if( "${CMAKE_INSTALL_PREFIX}" STREQUAL "${CMAKE_BINARY_DIR}/install" )
set( ${PREFIX}_ROOT_DIR ${${PREFIX}_MAKE_DIR}/install )
else()
set( ${PREFIX}_ROOT_DIR ${CMAKE_INSTALL_PREFIX} )
Expand Down

0 comments on commit e7ed001

Please sign in to comment.