Skip to content

Commit a35653d

Browse files
committed
Make BUILD_SHARED_LIBS a cache variable
1 parent 3369381 commit a35653d

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
@@ -29,10 +29,11 @@ message(STATUS Configuring Kokkos-Tools)
2929
message(STATUS)
3030

3131
# Common settings
32-
set(BUILD_SHARED_LIBS ON)
32+
set(BUILD_SHARED_LIBS_INIT ON)
3333
if(WIN32)
34-
set(BUILD_SHARED_LIBS OFF) # We need to add __declspec(dllexport/dllimport) for Windows DLLs
34+
set(BUILD_SHARED_LIBS_INIT OFF) # We need to add __declspec(dllexport/dllimport) for Windows DLLs
3535
endif()
36+
option(BUILD_SHARED_LIBS "Build shared libraries" ${BUILD_SHARED_LIBS_INIT})
3637

3738
# Tools settings
3839
option(KokkosTools_ENABLE_SINGLE "Build single library interfacing all profilers and dispatching at runtime" OFF)

0 commit comments

Comments
 (0)