From db3d5463bfa552e19cf7fecc9eea009c5e5d4374 Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Mon, 25 Mar 2024 08:08:39 -0500 Subject: [PATCH] fixing clang on windows tests? --- python/CMakeLists.txt | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index a88f7159..21faeb94 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -3,18 +3,23 @@ pybind11_add_module(musica_python wrapper.cpp) set_target_properties(musica_python PROPERTIES OUTPUT_NAME musica) target_include_directories(musica_python - PUBLIC - $ - $ - ) + PUBLIC + $ + $ +) target_link_libraries(musica_python PUBLIC musica::musica) -message(STATUS "thing: $") + if(WIN32) - set(PYTHON_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}/$") + # clang on windows doesn't need the config directory + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + set(PYTHON_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}") + else() + set(PYTHON_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}/$") + endif() else() - set(PYTHON_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}") + set(PYTHON_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}") endif() add_test(NAME musica_python_test