]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Make sure CMake does not pick stray directories for linking the engine
authorMouse <mouse008@gmail.com>
Tue, 27 Jun 2017 12:29:49 +0000 (08:29 -0400)
committerMouse <mouse008@gmail.com>
Tue, 27 Jun 2017 12:29:49 +0000 (08:29 -0400)
CMakeLists.txt

index 4ee778fa35224cc39528f43da56bcb9ae9767b3b..dfcd7743bece4f809c894179223b801c1ef2de7f 100644 (file)
@@ -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)