Skip to content

Commit

Permalink
Fix cmake variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jul 27, 2024
1 parent 6d482dd commit 239e92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (NOT MRPT_PYBIND11_WITH_LTO)
set_target_properties(pymrpt PROPERTIES LINK_LIBRARIES ${_opts})
else()
# Add parallel lto:
option(MRPT_PYTHON_LTO_PARALLEL_JOBS "Number of parallel threads for link-time -flto in pymrpt. Setting it to a large number may lead to RAM swapping. Default=3. Set to 'auto' for automatic core detection." "3")
set(MRPT_PYTHON_LTO_PARALLEL_JOBS "3" CACHE STRING "Number of parallel threads for link-time -flto in pymrpt. Setting it to a large number may lead to RAM swapping. Default=3. Set to 'auto' for automatic core detection.")
target_link_options(pymrpt PRIVATE -flto=${MRPT_PYTHON_LTO_PARALLEL_JOBS})
endif()

Expand Down

0 comments on commit 239e92e

Please sign in to comment.