|
5 | 5 | #################################################################################################### |
6 | 6 |
|
7 | 7 | cmake_minimum_required(VERSION 3.4...3.18) |
8 | | -project(PyPartMC LANGUAGES C CXX Fortran) |
| 8 | +project(_PyPartMC LANGUAGES C CXX Fortran) |
9 | 9 |
|
10 | 10 | set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
11 | 11 |
|
@@ -124,23 +124,23 @@ target_link_libraries(partmclib PRIVATE ${SUNDIALS_items}) |
124 | 124 | ### PYBIND11 & PyPartMC ############################################################################ |
125 | 125 |
|
126 | 126 | add_subdirectory(gitmodules/pybind11) |
127 | | -pybind11_add_module(PyPartMC ${PyPartMC_sources}) |
128 | | -add_dependencies(PyPartMC partmclib) |
129 | | -target_include_directories(PyPartMC PRIVATE |
| 127 | +pybind11_add_module(_PyPartMC ${PyPartMC_sources}) |
| 128 | +add_dependencies(_PyPartMC partmclib) |
| 129 | +target_include_directories(_PyPartMC PRIVATE |
130 | 130 | ${CMAKE_SOURCE_DIR}/gitmodules/json/include |
131 | 131 | ${CMAKE_SOURCE_DIR}/gitmodules/pybind11_json/include |
132 | 132 | ${CMAKE_SOURCE_DIR}/gitmodules/span/include |
133 | 133 | ${CMAKE_SOURCE_DIR}/gitmodules/string_view-standalone/include |
134 | 134 | ) |
135 | | -target_compile_definitions(PyPartMC PRIVATE VERSION_INFO=${VERSION_INFO}) |
136 | | -target_link_libraries(PyPartMC PRIVATE partmclib) |
| 135 | +target_compile_definitions(_PyPartMC PRIVATE VERSION_INFO=${VERSION_INFO}) |
| 136 | +target_link_libraries(_PyPartMC PRIVATE partmclib) |
137 | 137 | if (APPLE) |
138 | | - target_link_options(PyPartMC PRIVATE -Wl,-no_compact_unwind -Wl,-keep_dwarf_unwind) |
| 138 | + target_link_options(_PyPartMC PRIVATE -Wl,-no_compact_unwind -Wl,-keep_dwarf_unwind) |
139 | 139 | endif() |
140 | 140 |
|
141 | 141 | ### pedantics ###################################################################################### |
142 | 142 |
|
143 | | -foreach(target PyPartMC) # TODO: the same for partmclib |
| 143 | +foreach(target _PyPartMC) # TODO: the same for partmclib |
144 | 144 | target_compile_options(${target} PRIVATE |
145 | 145 | $<$<CXX_COMPILER_ID:MSVC>:/W4 /WX> |
146 | 146 | $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror> |
|
0 commit comments