Skip to content

Commit 98d195d

Browse files
committed
CMake: remove static liblsl from export list, due to lslboost that didn't work anyway
1 parent 56056ed commit 98d195d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ set(LSL_VERSION_INFO "\"git:${lslgitrevision}/branch:${lslgitbranch}/build:${CMA
132132
set_source_files_properties("src/lsl_freefuncs_c.cpp" PROPERTIES COMPILE_DEFINITIONS LSL_LIBRARY_INFO_STR=${LSL_VERSION_INFO})
133133

134134
set(target lsl)
135-
set(lsl_export_targets ${target})
136135

137136
add_subdirectory(${LSL_LSLBOOST_PATH})
138137

@@ -178,7 +177,6 @@ set_target_properties(${target} PROPERTIES
178177
if(${LSL_BUILD_STATIC})
179178
add_library(${target}-static ${sources} ${headers})
180179
lsllib_properties(${target}-static)
181-
list(APPEND lsl_export_targets "${target}-static")
182180
# for LSL_CPP_API export header
183181
target_compile_definitions(${target}-static PRIVATE LIBLSL_STATIC)
184182
set_target_properties(${target}-static PROPERTIES
@@ -191,7 +189,7 @@ else()
191189
set(LSLPREFIX "LSL/")
192190
endif()
193191

194-
install(TARGETS ${lsl_export_targets}
192+
install(TARGETS lsl
195193
COMPONENT liblsl
196194
EXPORT "${PROJECT_NAME}Config"
197195
RUNTIME DESTINATION ${LSLPREFIX}lib

0 commit comments

Comments
 (0)