win: compiling with clang needs also _USE_MATH_DEFINES (#73)

This commit is contained in:
lorenz
2024-08-13 15:20:20 +02:00
committed by GitHub
parent 3d6a23a678
commit 9b9ceeeff6

View File

@@ -643,9 +643,9 @@ set_target_properties(OndselSolver
PUBLIC_HEADER "${ONDSELSOLVER_HEADERS}"
)
if(MSVC)
if(WIN32)
target_compile_definitions(OndselSolver PRIVATE _USE_MATH_DEFINES)
endif(MSVC)
endif(WIN32)
configure_file(../OndselSolver.pc.in ${CMAKE_BINARY_DIR}/OndselSolver.pc @ONLY)
install(TARGETS OndselSolver