diff options
author | Mouse <mouse008@gmail.com> | 2017-06-27 08:29:49 -0400 |
---|---|---|
committer | Mouse <mouse008@gmail.com> | 2017-06-27 08:29:49 -0400 |
commit | b616bb8e764ca37c9e2c45e79e875ca55aab7d37 (patch) | |
tree | b54a57419f47186a6409d2d546ef6457d762e908 | |
parent | 1d298302d4f35ed44ab8859e98b506d948b1a0da (diff) | |
download | gost-engine-b616bb8e764ca37c9e2c45e79e875ca55aab7d37.zip gost-engine-b616bb8e764ca37c9e2c45e79e875ca55aab7d37.tar.gz gost-engine-b616bb8e764ca37c9e2c45e79e875ca55aab7d37.tar.bz2 |
Make sure CMake does not pick stray directories for linking the engine
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ee778f..dfcd774 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,17 @@ set(GOST_INCLUDE_DIRECTORIES "${OPENSSL_PATH}/include" "${OPENSSL_PATH}/crypto/i set(GOST_LINK_DIRECTORIES "${OPENSSL_PATH}") +# module linker flags +SET (CMAKE_MODULE_LINKER_FLAGS "-L${OPENSSL_PATH}" "-L${OPENSSL_PATH}/lib" $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of modules.") +# exe linker flags +SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of executables.") +# shared lib linker flags +SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS} + CACHE STRING "Flags used by the linker during the creation of shared libraries.") + + include_directories("${GOST_INCLUDE_DIRECTORIES}") set(BIN_DIRECTORY bin) |