File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ include_directories(BEFORE SYSTEM
312
312
)
313
313
314
314
315
- file (READ "VERSION" CPPINTEROP_VERSION )
315
+ file (STRINGS "VERSION" CPPINTEROP_VERSION )
316
316
string (REGEX MATCH "([0-9]*)\. ([0-9]*)\. ([0-9]*)" CPPINTEROP_VERSION_ONLY "${CPPINTEROP_VERSION} " )
317
317
set (CPPINTEROP_VERSION_MAJOR "${CMAKE_MATCH_1} " )
318
318
set (CPPINTEROP_VERSION_MINOR "${CMAKE_MATCH_2} " )
Original file line number Diff line number Diff line change @@ -10,26 +10,30 @@ get_filename_component(CPPINTEROP_INSTALL_PREFIX "${CPPINTEROP_INSTALL_PREFIX}"
10
10
11
11
if (IS_DIRECTORY "${CPPINTEROP_INSTALL_PREFIX} /include" )
12
12
set (_include "${CPPINTEROP_INSTALL_PREFIX} /include" )
13
+ set (_libs "${CPPINTEROP_INSTALL_PREFIX} /lib/${CMAKE_SHARED_LIBRARY_PREFIX} clangCppInterOp${CMAKE_SHARED_LIBRARY_SUFFIX} " )
13
14
else ()
14
15
set (_include "@CMAKE_CURRENT_SOURCE_DIR@/include" )
16
+ set (_libs "@CMAKE_CURRENT_SOURCE_DIR@/lib/${CMAKE_SHARED_LIBRARY_PREFIX} clangCppInterOp${CMAKE_SHARED_LIBRARY_SUFFIX} " )
15
17
endif ()
16
18
17
- if (IS_DIRECTORY "${CPPINTEROP_INSTALL_PREFIX} /cmake" )
18
- set (_cmake "${CPPINTEROP_INSTALL_PREFIX} /cmake" )
19
+ if (IS_DIRECTORY "${CPPINTEROP_INSTALL_PREFIX} /lib/ cmake/CppInterOp " )
20
+ set (_cmake "${CPPINTEROP_INSTALL_PREFIX} /lib/ cmake/CppInterOp " )
19
21
else ()
20
- set (_cmake "@CMAKE_CURRENT_SOURCE_DIR@/cmake" )
22
+ set (_cmake "@CMAKE_CURRENT_SOURCE_DIR@/cmake/CppInterOp " )
21
23
endif ()
22
24
23
25
###
24
26
25
27
set (CPPINTEROP_EXPORTED_TARGETS "clangCppInterOp" )
26
28
set (CPPINTEROP_CMAKE_DIR "${_cmake} " )
27
29
set (CPPINTEROP_INCLUDE_DIRS "${_include} " )
30
+ set (CPPINTEROP_LIBRARIES "${_libs} " )
28
31
29
32
# Provide all our library targets to users.
30
33
add_library (clangCppInterOp SHARED IMPORTED )
31
- set_property (TARGET clangCppInterOp PROPERTY IMPORTED_LOCATION "${CPPINTEROP_DIR} /lib/libclangCppInterOp.so" )
32
34
set_property (TARGET clangCppInterOp PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${_include} " )
35
+ set_property (TARGET clangCppInterOp PROPERTY IMPORTED_LOCATION "${_libs} " )
33
36
34
- unset (_include )
35
37
unset (_cmake )
38
+ unset (_include )
39
+ unset (_libs )
You can’t perform that action at this time.
0 commit comments