Merge pull request #31 from arsenm/master
Fixed silent failure when no monitors were found.
diff --git a/src/init.c b/src/init.c
index 672e01f..c2c6caf 100644
--- a/src/init.c
+++ b/src/init.c
@@ -147,6 +147,7 @@
_glfw.monitors = _glfwPlatformGetMonitors(&_glfw.monitorCount);
if (!_glfw.monitors)
{
+ _glfwErrorCallback(GLFW_PLATFORM_ERROR, "No monitors found");
_glfwPlatformTerminate();
return GL_FALSE;
}
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3020126..d662993 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -24,7 +24,7 @@
set(GETOPT ${GLFW_SOURCE_DIR}/support/getopt.h
${GLFW_SOURCE_DIR}/support/getopt.c)
set(TINYCTHREAD ${GLFW_SOURCE_DIR}/support/tinycthread.h
- ${GLFW_SOURCE_DIR}/support/tinycthread.c)
+ ${GLFW_SOURCE_DIR}/support/tinycthread.c)
add_executable(clipboard clipboard.c ${GETOPT})
add_executable(defaults defaults.c)
@@ -57,9 +57,8 @@
add_executable(windows WIN32 MACOSX_BUNDLE windows.c)
set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows")
-if (BUILD_SHARED_LIBS)
- target_link_libraries(threads ${thread_LIBRARIES})
-endif()
+target_link_libraries(threads ${thread_LIBRARIES})
+
set(WINDOWS_BINARIES accuracy sharing tearing threads title windows)
set(CONSOLE_BINARIES clipboard defaults events fsaa fsfocus gamma glfwinfo