mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-11 10:25:26 +02:00
On Win32, things are failing to build with messages like: RenderableEntityItem.cpp(674,51): error C2065: 'M_PI': undeclared identifier This is because as per Microsoft documentation, _USE_MATH_DEFINES is needed to obtain constants like M_PI: https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants?view=msvc-160 It seems this worked previously due to some quirk of CMake, but stopped working after some reordering. This change makes this definition explicit where it is needed.
24 lines
891 B
CMake
24 lines
891 B
CMake
set(TARGET_NAME entities-renderer)
|
|
setup_hifi_library(Network Script)
|
|
link_hifi_libraries(shared workload gpu shaders procedural graphics material-networking model-networking script-engine render render-utils image qml ui pointers)
|
|
include_hifi_library_headers(networking)
|
|
include_hifi_library_headers(gl)
|
|
include_hifi_library_headers(ktx)
|
|
include_hifi_library_headers(octree)
|
|
include_hifi_library_headers(audio)
|
|
include_hifi_library_headers(physics)
|
|
include_hifi_library_headers(animation)
|
|
include_hifi_library_headers(hfm)
|
|
include_hifi_library_headers(model-serializers)
|
|
include_hifi_library_headers(entities)
|
|
include_hifi_library_headers(avatars)
|
|
include_hifi_library_headers(controllers)
|
|
include_hifi_library_headers(task)
|
|
include_hifi_library_headers(graphics-scripting) # for Forward.h
|
|
|
|
target_bullet()
|
|
target_polyvox()
|
|
|
|
if (WIN32)
|
|
add_compile_definitions(_USE_MATH_DEFINES)
|
|
endif()
|