Skip to content

Commit

Permalink
fix windows path
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
  • Loading branch information
mikaelarguedas committed Apr 28, 2020
1 parent de8f34b commit 28c4488
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_security/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,10 @@ if(BUILD_TESTING)
"test/test_secure_subscriber.cpp")

set(append_library_dirs "${CMAKE_CURRENT_BINARY_DIR}")
set(append_library_dirs "${append_library_dirs}:$ENV{RTI_OPENSSL_LIBS}")
if(WIN32)
set(append_library_dirs "${append_library_dirs}/$<CONFIG>")
string(REPLACE "\\" "\\\\" RTI_OPENSSL_LIBS "$ENV{RTI_OPENSSL_LIBS}")
set(append_library_dirs "${append_library_dirs};${RTI_OPENSSL_LIBS}")
# TODO(mikaelarguedas) uncomment this once Connext supports OpenSSL 1.1.1
# in the meantime use RTI_OPENSSL_LIBS
# elseif(APPLE)
Expand All @@ -314,6 +315,8 @@ if(BUILD_TESTING)
# set(openssl_lib_path "${_out_var}/lib")
# file(TO_NATIVE_PATH "${openssl_lib_path}" openssl_lib_path)
# set(append_library_dirs "${append_library_dirs};${openssl_lib_path}")
else()
set(append_library_dirs "${append_library_dirs}:$ENV{RTI_OPENSSL_LIBS}")
endif()

# finding gtest once in the highest scope
Expand Down

0 comments on commit 28c4488

Please sign in to comment.