Skip to content

Commit

Permalink
MB-17878: try to fix FTS on windows
Browse files Browse the repository at this point in the history
Change-Id: I71d6f2012112226e77bc35951e442bd74bf32f06
Reviewed-on: http://review.couchbase.org/59533
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Marty Schoch <marty.schoch@gmail.com>
  • Loading branch information
mschoch committed Feb 4, 2016
1 parent d11d272 commit 296e12a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ IF (APPLE)
SET (_ldflags "-extldflags '-Wl,-rpath,@executable_path/../lib'")
ENDIF ()

IF (WIN32)
INCLUDE (PlatformIntrospection)
_DETERMINE_ARCH (_arch)
IF (NOT _arch STREQUAL x86)
SET (_ldflags "-linkmode internal")
ENDIF ()
ENDIF ()

GoInstall (TARGET cbft PACKAGE github.com/couchbase/cbft/cmd/cbft
GOPATH "${PROJECT_SOURCE_DIR}/../../../.." "${GODEPSDIR}"
${_forestdb_dep}
Expand Down

0 comments on commit 296e12a

Please sign in to comment.