Skip to content

Commit

Permalink
Fix linker
Browse files Browse the repository at this point in the history
  • Loading branch information
qchateau committed Aug 19, 2019
1 parent 8d95d5e commit bc354d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ set(CMAKE_CXX_STANDARD 11)

if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
# https://stackoverflow.com/questions/47117443/dynamic-linking-with-rpath-not-working-under-ubuntu-17-10
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--disable-new-dtags")
elseif(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
endif()
Expand Down
2 changes: 2 additions & 0 deletions opencv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ set(WITH_VTK OFF CACHE BOOL "")
set(ENABLE_PRECOMPILED_HEADERS OFF CACHE BOOL "")
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_LIST_DIR}/install CACHE PATH "")
set(CMAKE_INSTALL_RPATH "" CACHE STRING "")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH OFF CACHE BOOL "")

0 comments on commit bc354d2

Please sign in to comment.