Skip to content

Commit be171cd

Browse files
committed
remove force
1 parent 556232d commit be171cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ set(MYLIB_VERSION_MINOR 0)
2222
set(MYLIB_VERSION_PATCH 0)
2323
set(MYLIB_VERSION_STRING ${MYLIB_VERSION_MAJOR}.${MYLIB_VERSION_MINOR}.${MYLIB_VERSION_PATCH})
2424

25-
# to build static, cmake . -DBUILD_SHARED_LIBS=Off
26-
option(BUILD_SHARED_LIBS "Build a shared library" ON)
25+
# just doing cmake . will build a shared or static lib and honor existing environment setting
26+
# to force build static, cmake . -DBUILD_SHARED_LIBS=Off
27+
# to force build shared, cmake . -DBUILD_SHARED_LIBS=On
2728

2829
if (NOT BUILD_SHARED_LIBS)
2930
message ("Building a static library")

0 commit comments

Comments
 (0)