We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac775d3 commit 0973d10Copy full SHA for 0973d10
CMakeLists.txt
@@ -94,17 +94,17 @@ set (LUAC
94
${LUA_SRC}/luac.c
95
)
96
97
-include(CheckLibraryExists)
98
-check_library_exists(m pow "" LIBEXISTS)
99
-if(LIBEXISTS)
100
- set(LIBM "m")
101
-endif()
102
-
103
add_executable(lua ${LUA} ${LIB})
104
-target_link_libraries(lua PUBLIC ${LIBM})
105
106
add_executable(luac ${LUAC} ${LIB})
107
-target_link_libraries(luac PUBLIC ${LIBM})
+
+if(NOT WIN32)
+ include(CheckLibraryExists)
+ check_library_exists(m pow "" LIBEXISTS)
+ if(LIBEXISTS)
+ target_link_libraries(lua PUBLIC m)
+ target_link_libraries(luac PUBLIC m)
+ endif()
+endif()
108
109
add_library(lualib SHARED ${LIB})
110
target_sources(lualib
0 commit comments