summaryrefslogtreecommitdiff
path: root/CMake/resources.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/resources.cmake')
-rw-r--r--CMake/resources.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMake/resources.cmake b/CMake/resources.cmake
index fb2308bd6..71fc9c4c3 100644
--- a/CMake/resources.cmake
+++ b/CMake/resources.cmake
@@ -4,7 +4,7 @@
# Main CMakeLists.txt to build the FLTK project using CMake (www.cmake.org)
# Written by Michael Surette
#
-# Copyright 1998-2017 by Bill Spitzak and others.
+# Copyright 1998-2018 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file. If this
@@ -187,8 +187,8 @@ if(HAVE_SCANDIR AND NOT HAVE_SCANDIR_POSIX)
set(MSG "POSIX compatible scandir")
message(STATUS "Looking for ${MSG}")
try_compile(V
- ${CMAKE_BINARY_DIR}
- ${CMAKE_SOURCE_DIR}/CMake/posixScandir.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/CMake/posixScandir.cxx
)
if(V)
message(STATUS "${MSG} - found")