Skip to content

Commit 772e5ca

Browse files
committed
CMake default for run path
1 parent 990ab85 commit 772e5ca

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.flake8

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
max-line-length = 132
33
ignore = E501, W503, W504
44
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/,.archive/
5-
per-file-ignores =
6-
__init__.py:F401, F403

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
cmake_minimum_required(VERSION 3.14...3.25)
1+
cmake_minimum_required(VERSION 3.14...3.27)
2+
3+
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
4+
message(FATAL_ERROR "Please do out of source build like
5+
cmake -Bbuild")
6+
endif()
27

38
get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
49
if(NOT is_multi_config AND NOT (CMAKE_BUILD_TYPE OR DEFINED ENV{CMAKE_BUILD_TYPE}))

options.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ if(BUILD_SHARED_LIBS AND MSVC)
1818
cmake -DBUILD_SHARED_LIBS=off")
1919
endif()
2020

21-
# Rpath options necessary for shared library install to work correctly in user projects
22-
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_FULL_LIBDIR})
23-
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
24-
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true)
25-
2621
# Necessary for shared library with Visual Studio / Windows oneAPI
2722
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true)
2823

0 commit comments

Comments
 (0)