[brlcad-commits] SF.net SVN: brlcad:[59575] brlcad/trunk/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <r_...@us...> - 2014-01-29 22:31:30
|
Revision: 59575 http://sourceforge.net/p/brlcad/code/59575 Author: r_weiss Date: 2014-01-29 22:31:26 +0000 (Wed, 29 Jan 2014) Log Message: ----------- update to cmake settings to fix windows 32bit build Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2014-01-29 22:23:03 UTC (rev 59574) +++ brlcad/trunk/CMakeLists.txt 2014-01-29 22:31:26 UTC (rev 59575) @@ -1809,11 +1809,11 @@ # timeSetEvent in Windows memory management if("${HAVE_TIMESETEVENT}" MATCHES "^${HAVE_TIMESETEVENT}$") set(CMAKE_REQUIRED_LIBRARIES_BAK ${CMAKE_REQUIRED_LIBRARIES}) - set(CMAKE_REQUIRED_LIBRARIES winmm.lib) - check_c_source_compiles("#include <windows.h>\nint main() {return !!timeSetEvent(seconds*1000, 100, (LPTIMECALLBACK)NULL, NULL, TIME_ONESHOT);}" HAVE_TIMESETEVENT) + set(CMAKE_REQUIRED_LIBRARIES "winmm.lib") + check_c_source_compiles("#include <windows.h>\nint main() {(void)timeSetEvent(1000, 100, (LPTIMECALLBACK)NULL, (DWORD_PTR)NULL, TIME_ONESHOT);}" HAVE_TIMESETEVENT) if(HAVE_TIMESETEVENT) CONFIG_H_APPEND(BRLCAD "#cmakedefine HAVE_TIMESETEVENT 1\n") - set(WINMM_LIBRARY winmm.lib) + set(WINMM_LIBRARY "winmm.lib") endif(HAVE_TIMESETEVENT) set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_BAK}) endif("${HAVE_TIMESETEVENT}" MATCHES "^${HAVE_TIMESETEVENT}$") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |