From 9b9ceeeff62eb59ed60121dbfbc11e8ff59871c9 Mon Sep 17 00:00:00 2001 From: lorenz Date: Tue, 13 Aug 2024 15:20:20 +0200 Subject: [PATCH] win: compiling with clang needs also _USE_MATH_DEFINES (#73) --- OndselSolver/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OndselSolver/CMakeLists.txt b/OndselSolver/CMakeLists.txt index 8e78a85..b1a73da 100644 --- a/OndselSolver/CMakeLists.txt +++ b/OndselSolver/CMakeLists.txt @@ -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