diff --git a/CMakeLists.txt b/CMakeLists.txt index d6c3900..f870eeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,9 @@ project(${SKBUILD_PROJECT_NAME}) # required for linking fmt library during cibuildwheels build on manylinux_2_28 set(CMAKE_POSITION_INDEPENDENT_CODE ON) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") +if(UNIX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") +endif() include(FetchContent) FetchContent_Declare(