Skip to content

Commit cf18068

Browse files
authored
Update CppInterOpConfig.cmake.in to get correct library location (#171)
When referencing config file while building xeus-clang-repl it sets the location of the library to the wrong location. This fix gives the right location.
1 parent 900d311 commit cf18068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/CppInterOp/CppInterOpConfig.cmake.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (IS_DIRECTORY "${CPPINTEROP_INSTALL_PREFIX}/include")
1616
set(_libs "${CPPINTEROP_INSTALL_PREFIX}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}clangCppInterOp${CMAKE_SHARED_LIBRARY_SUFFIX}")
1717
else()
1818
set(_include "@CMAKE_CURRENT_SOURCE_DIR@/include")
19-
set(_libs "@CMAKE_CURRENT_SOURCE_DIR@/lib/${CMAKE_SHARED_LIBRARY_PREFIX}clangCppInterOp${CMAKE_SHARED_LIBRARY_SUFFIX}")
19+
set(_libs "@CMAKE_CURRENT_BINARY_DIR@/lib/${CMAKE_SHARED_LIBRARY_PREFIX}clangCppInterOp${CMAKE_SHARED_LIBRARY_SUFFIX}")
2020
endif()
2121

2222
if (IS_DIRECTORY "${CPPINTEROP_INSTALL_PREFIX}/lib/cmake/CppInterOp")

0 commit comments

Comments
 (0)