]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Support out-of-source building and have Travis do it 94/head
authorCraig Andrews <candrews@integralblue.com>
Tue, 30 Oct 2018 01:29:30 +0000 (21:29 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 30 Oct 2018 02:04:01 +0000 (22:04 -0400)
.travis.yml
CMakeLists.txt

index ae592a060905cf6466c18fb697d65f71eef18fe6..dd84cdb76da7ffdd16b3ef7a716d6d0ea91d3e4a 100644 (file)
@@ -10,7 +10,6 @@ env:
     - PREFIX=${HOME}/opt
     - LD_LIBRARY_PATH=${PREFIX}/lib
     - PATH=${PREFIX}/bin:${PATH}
-    - OPENSSL_ENGINES=${TRAVIS_BUILD_DIR}/bin
 
 matrix:
   include:
@@ -31,5 +30,8 @@ before_script:
   - cd ..
 
 script:
-  - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines && make
+  - mkdir build
+  - cd build
+  - cmake -DOPENSSL_ROOT_DIR=${PREFIX} -DOPENSSL_LIBRARIES=${PREFIX}/lib -DOPENSSL_ENGINES_DIR=${PREFIX}/engines ..
+  - make
   - make test
index 55b86c9fb1c84e4375157fef651961b86a15e1ff..26d2a406d35af488e2d46fc2be36755f78580068 100644 (file)
@@ -32,7 +32,7 @@ endif()
 
 set(BIN_DIRECTORY bin)
 
-set(OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/${BIN_DIRECTORY})
+set(OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_DIRECTORY})
 
 #set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY})
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY})
@@ -141,6 +141,7 @@ add_test(NAME grasshopper
 add_test(NAME engine
         COMMAND perl run_tests
         WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
+set_tests_properties(engine PROPERTIES ENVIRONMENT OPENSSL_ENGINES=${OUTPUT_DIRECTORY})
 
 add_library(gost_core STATIC ${GOST_LIB_SOURCE_FILES})
 set_target_properties(gost_core PROPERTIES POSITION_INDEPENDENT_CODE ON)