Skip to content

Commit c0b36b1

Browse files
committed
Update
1 parent 8ac7cf1 commit c0b36b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
cmake_minimum_required(VERSION 3.5)
22

3+
option(BUILD_TESTS "Build tests" OFF)
4+
35
project(java_shared_memory)
46

57
set(CMAKE_CXX_STANDARD 17)
@@ -22,4 +24,6 @@ install(
2224
DESTINATION "include"
2325
)
2426

25-
add_executable(jshm_test "${PROJECT_SOURCE_DIR}/test/main.cpp")
27+
if(BUILD_TESTS)
28+
add_executable(jshm_test "${PROJECT_SOURCE_DIR}/test/main.cpp")
29+
endif()

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'cn.apisium.shm'
7-
version '0.1.5'
7+
version = System.getenv('VERSION') ?: '0.0.0'
88

99
sourceCompatibility = JavaVersion.VERSION_19
1010
targetCompatibility = JavaVersion.VERSION_19

0 commit comments

Comments
 (0)