mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-30 22:20:50 +00:00
ughghghghh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@562 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -109,24 +109,6 @@ if(CLASSIC)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(USE_FDLIBM)
|
||||
file(
|
||||
GLOB
|
||||
FDLIBM_SOURCES
|
||||
external/fdlibm/*.c
|
||||
)
|
||||
target_sources(
|
||||
Mw
|
||||
PRIVATE
|
||||
${FDLIBM_SOURCES}
|
||||
)
|
||||
target_include_directories(
|
||||
Mw
|
||||
PRIVATE
|
||||
external/fdlibm
|
||||
)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
target_sources(
|
||||
Mw
|
||||
@@ -145,10 +127,6 @@ else()
|
||||
pkg_check_modules(XRENDER REQUIRED xrender)
|
||||
pkg_check_modules(XCURSOR REQUIRED xcursor)
|
||||
|
||||
if(NOT USE_FDLIBM)
|
||||
list(APPEND LIBRARIES m)
|
||||
endif()
|
||||
|
||||
target_sources(
|
||||
Mw
|
||||
PRIVATE
|
||||
@@ -161,7 +139,7 @@ else()
|
||||
)
|
||||
list(APPEND INCLUDE_DIRS ${X11_INCLUDE_DIRS} ${XRENDER_INCLUDE_DIRS} ${XCURSOR_INCLUDE_DIRS})
|
||||
list(APPEND LIBRARY_DIRS ${X11_LIBRARY_DIRS} ${XRENDER_LIBRARY_DIRS} ${XCURSOR_LIBRARY_DIRS})
|
||||
list(APPEND LIBRARIES ${X11_LIBRARIES} ${XRENDER_LIBRARIES} ${XCURSOR_LIBRARIES})
|
||||
list(APPEND LIBRARIES ${X11_LIBRARIES} ${XRENDER_LIBRARIES} ${XCURSOR_LIBRARIES} m)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
list(APPEND LIBRARIES dl)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user