Fix unloading of modules. Up warning levels to 4.

This commit is contained in:
Mikaël Capelle
2022-05-05 22:03:18 +02:00
parent 450bfa821a
commit 28210d3d7a
16 changed files with 56 additions and 53 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ foreach (test_file ${test_files})
get_filename_component(target ${test_file} NAME_WLE)
string(REPLACE "test_" "" pymodule ${target})
pybind11_add_module(${target} THIN_LTO ${test_file})
pybind11_add_module(${target} EXCLUDE_FROM_ALL THIN_LTO ${test_file})
set_target_properties(${target}
PROPERTIES
OUTPUT_NAME ${pymodule}