Skip to content

Commit

Permalink
perf: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Nov 13, 2023
1 parent f303b3b commit d1864f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ if(APPLE)
endif()
elseif(UNIX)
set(CMAKE_INSTALL_RPATH "$ORIGIN")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

set(CMAKE_CXX_STANDARD 20)
Expand Down
1 change: 1 addition & 0 deletions source/LibraryHolder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ file(GLOB_RECURSE library_holder_src *.h *.hpp *.cpp)
file(GLOB_RECURSE library_holder_header ../include/LibraryHolder/*)

add_library(LibraryHolder STATIC ${library_holder_src} ${library_holder_header})
set_target_properties(LibraryHolder PROPERTIES POSITION_INDEPENDENT_CODE ON)

target_include_directories(LibraryHolder
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../include ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
Expand Down

0 comments on commit d1864f1

Please sign in to comment.