Skip to content
Snippets Groups Projects
Commit 58feab37 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] Added compilation flag without position-dependent code. The function that...

[*] Added compilation flag without position-dependent code. The function that describes the creation of a dynamic library is changed to static.
parent 8f210423
No related branches found
No related tags found
1 merge request!1Features 2466
......@@ -5,6 +5,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_C_STANDARD 11)
#set(SUBMODULES_NO_BUILD ON)
add_definitions("-fpic")
if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
if (NOT (TARGET dap_core))
......@@ -24,7 +25,7 @@ set(Python_ADDITIONAL_VERSIONS 3.7)
find_package (PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIR} include/)
add_library(${PROJECT_NAME} SHARED ${CRYPTO_PYTHON_SRCS} ${CRYPTO_PYTHON_HEADERS})
add_library(${PROJECT_NAME} STATIC ${CRYPTO_PYTHON_SRCS} ${CRYPTO_PYTHON_HEADERS})
target_link_libraries(${PROJECT_NAME})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment