Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit de5170f

Browse files
author
Szymon Romik
authored
Merge pull request #426 from igchor/stable-1.6
Merge back changes from stable-1.5 to stable-1.6
2 parents dd9ec04 + cb44b8f commit de5170f

9 files changed

Lines changed: 37 additions & 17 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ configure_file(${CMAKE_SOURCE_DIR}/cmake/libpmemobj++.pc.in
259259
${CMAKE_CURRENT_BINARY_DIR}/libpmemobj++.pc @ONLY)
260260

261261
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpmemobj++.pc
262-
CONFIGURATIONS Release Debug
263262
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
264263

265264
configure_file(

appveyor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 1.4.{build}
2-
os: Visual Studio 2015
2+
os: Visual Studio 2017
33
platform: x64
44

55
environment:
@@ -24,18 +24,21 @@ before_build:
2424
- cmake . -Bbuild -G "%GENERATOR%"
2525
-DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
2626
-DCMAKE_INSTALL_PREFIX=c:/install/libpmemobj-cpp
27+
-DTESTS_USE_FORCED_PMEM=ON
2728

2829
build_script:
2930
- msbuild build/ALL_BUILD.vcxproj /property:Configuration=%CONFIGURATION%
31+
/verbosity:minimal
3032

3133
test_script:
3234
- cd build
3335
- ctest -C %CONFIGURATION% --output-on-failure --timeout 540
34-
- msbuild INSTALL.vcxproj
36+
- msbuild INSTALL.vcxproj /verbosity:minimal
3537
- cd ..
3638
# build standalone example
3739
- cd examples/map_cli
3840
- cmake . -G "%GENERATOR%"
3941
-DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
4042
-DCMAKE_PREFIX_PATH=c:/install/libpmemobj-cpp
41-
- msbuild ALL_BUILD.vcxproj
43+
-DTESTS_USE_FORCED_PMEM=ON
44+
- msbuild ALL_BUILD.vcxproj /verbosity:minimal

examples/array/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018, Intel Corporation
2+
# Copyright 2018-2019, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -37,7 +37,10 @@ set(CMAKE_CXX_STANDARD 11)
3737

3838
include(FindThreads)
3939

40-
find_package(PkgConfig QUIET)
40+
if(NOT WIN32)
41+
find_package(PkgConfig QUIET)
42+
endif()
43+
4144
if(PKG_CONFIG_FOUND)
4245
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++)
4346
else()

examples/map_cli/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018, Intel Corporation
2+
# Copyright 2018-2019, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -37,7 +37,10 @@ set(CMAKE_CXX_STANDARD 11)
3737

3838
include(FindThreads)
3939

40-
find_package(PkgConfig QUIET)
40+
if(NOT WIN32)
41+
find_package(PkgConfig QUIET)
42+
endif()
43+
4144
if(PKG_CONFIG_FOUND)
4245
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++)
4346
else()

examples/panaconda/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018, Intel Corporation
2+
# Copyright 2018-2019, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -37,7 +37,10 @@ set(CMAKE_CXX_STANDARD 11)
3737

3838
include(FindThreads)
3939

40-
find_package(PkgConfig QUIET)
40+
if(NOT WIN32)
41+
find_package(PkgConfig QUIET)
42+
endif()
43+
4144
if(PKG_CONFIG_FOUND)
4245
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++)
4346

examples/pman/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018, Intel Corporation
2+
# Copyright 2018-2019, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -37,7 +37,10 @@ set(CMAKE_CXX_STANDARD 11)
3737

3838
include(FindThreads)
3939

40-
find_package(PkgConfig QUIET)
40+
if(NOT WIN32)
41+
find_package(PkgConfig QUIET)
42+
endif()
43+
4144
if(PKG_CONFIG_FOUND)
4245
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++)
4346

examples/pmpong/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018, Intel Corporation
2+
# Copyright 2018-2019, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -37,7 +37,10 @@ set(CMAKE_CXX_STANDARD 11)
3737

3838
include(FindThreads)
3939

40-
find_package(PkgConfig QUIET)
40+
if(NOT WIN32)
41+
find_package(PkgConfig QUIET)
42+
endif()
43+
4144
if(PKG_CONFIG_FOUND)
4245
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++)
4346

examples/queue/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018, Intel Corporation
2+
# Copyright 2018-2019, Intel Corporation
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -37,7 +37,10 @@ set(CMAKE_CXX_STANDARD 11)
3737

3838
include(FindThreads)
3939

40-
find_package(PkgConfig QUIET)
40+
if(NOT WIN32)
41+
find_package(PkgConfig QUIET)
42+
endif()
43+
4144
if(PKG_CONFIG_FOUND)
4245
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++)
4346
else()

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ add_check_whitespace(tests-common ${CMAKE_CURRENT_SOURCE_DIR}/common/*.*pp ${CMA
3838
add_check_whitespace(tests-cmake ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
3939

4040
if(MSVC_VERSION)
41-
add_flag(-W4)
41+
add_flag(-W3)
4242
add_flag(-bigobj) # fix C1128 raised for some test binaries
4343
else()
4444
add_flag(-Wall)

0 commit comments

Comments
 (0)