]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #15516 from javacruft/i386-cmake-fixes
authorSage Weil <sage@newdream.net>
Wed, 7 Jun 2017 21:00:10 +0000 (16:00 -0500)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2017 21:00:10 +0000 (16:00 -0500)
cmake: misc fixes for build on i386

Reviewed-by: Kefu Chai <kchai@redhat.com>
1  2 
src/CMakeLists.txt

index 37462a162ee7146ebf69cb9624718a70f634378c,30c3381042e7d6eb5a4dc6d9612a66cc93be2faa..3582ad30a9b313aadf131796991b815068519640
@@@ -886,23 -886,21 +886,23 @@@ add_subdirectory(compressor
  
  add_subdirectory(tools)
  
 -# dmClock
 -
 -add_subdirectory(dmclock) # after gmock
 -add_dependencies(tests dmclock-tests dmclock-data-struct-tests)
 -
 -if(WITH_TESTS)
 -  install(PROGRAMS
 -    ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-tests
 -    ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-data-struct-tests
 -    DESTINATION bin)
 -endif(WITH_TESTS)
 +# dmClock (after gmock)
 +
 +add_subdirectory(dmclock/src)
 +
 +option(WITH_DMCLOCK_TESTS
 +  "enable the build of dmclock-tests and dmclock-data-struct tests binaries"
 +  OFF)
 +if(WITH_TESTS AND WITH_DMCLOCK_TESTS)
 +  # note: add_test is not being called, so dmclock tests aren't part
 +  # of ceph tests
 +  add_subdirectory(dmclock/test)
 +  add_subdirectory(dmclock/support/test)
 +endif(WITH_TESTS AND WITH_DMCLOCK_TESTS)
  
- if(HAVE_INTEL)
+ if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64)
    add_subdirectory(crypto/isa-l)
- endif(HAVE_INTEL)
+ endif(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64)
  
  if(WITH_TESTS)