Skip to content

Commit a8b6fbb

Browse files
committed
fix cmake file (#179, #174)
1 parent 4fb891d commit a8b6fbb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ set(LIBRARY_TARGET_NAME ${PROJECT_NAME})
2020

2121
message(USING Qt${QT_VERSION_MAJOR})
2222

23+
set(CMAKE_SKIP_BUILD_RPATH FALSE)
24+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
25+
set(CMAKE_INSTALL_RPATH $ORIGIN)
26+
2327
add_subdirectory(src)
2428

2529
if (BUILD_TESTS)

src/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ target_link_libraries(${LIBRARY_TARGET_NAME} PRIVATE
4545
Qt${QT_VERSION_MAJOR}::Core
4646
Qt${QT_VERSION_MAJOR}::Network)
4747

48-
set(CMAKE_SKIP_BUILD_RPATH FALSE)
49-
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
50-
set(CMAKE_INSTALL_RPATH $ORIGIN)
51-
5248
target_include_directories(${LIBRARY_TARGET_NAME}
5349
PRIVATE
5450
# where the library itself will look for its internal headers

0 commit comments

Comments
 (0)