Skip to content

Commit

Permalink
Linux position independent code -fpic
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmanek94 committed Sep 17, 2023
1 parent d2e4db5 commit 9a91d03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if(MSVC)
add_definitions(/MP)
# Enable EHa
#string(REGEX REPLACE "/EHsc" "/EHa" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
else()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/)
Expand Down

0 comments on commit 9a91d03

Please sign in to comment.