Skip to content

Commit

Permalink
add_compile_definitions(_USE_MATH_DEFINES)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed Jun 12, 2024
1 parent 818d0f1 commit 613c947
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DJSON_IS_AMALGAMATION")

# Add math defines
if (WIN32)
add_definitions(-D_USE_MATH_DEFINES)
if(WIN32)
add_compile_definitions(_USE_MATH_DEFINES)
endif()

# Make the scripts available in the 'cmake' directory available for the
Expand Down Expand Up @@ -411,8 +411,8 @@ set_package_properties(LAPACK PROPERTIES
)

# Check if spatial solver is requested by user
if (BUILD_SPATIAL_SOLVER)
if( NOT ENABLE_LAPACK)
if(BUILD_SPATIAL_SOLVER)
if(NOT ENABLE_LAPACK)
message(FATAL_ERROR "LAPACK is required to build spatial solvers.")
endif()

Expand Down

0 comments on commit 613c947

Please sign in to comment.