Skip to content

Commit

Permalink
win: compiling with clang needs also _USE_MATH_DEFINES (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo authored Aug 13, 2024
1 parent 3d6a23a commit 9b9ceee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OndselSolver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b9ceee

Please sign in to comment.