cmake_modules/CheckHaskellModuleExists.cmake
changeset 11860 ad435d95ca4b
parent 11333 facac91c7c65
child 12118 72f5d670bbee
--- a/cmake_modules/CheckHaskellModuleExists.cmake	Sat Oct 01 20:56:42 2016 +0300
+++ b/cmake_modules/CheckHaskellModuleExists.cmake	Sat Oct 01 21:27:05 2016 +0300
@@ -28,6 +28,9 @@
                     "-DMODULE=${MODULE}"
                     "-DFUNCTION=${FUNCTION}"
                     "-DPARAMETERS=${PARAMETERS}"
+                    -hide-all-packages
+                    -package ${LIBRARY}
+                    -package base
                     -cpp
                     -c "${CMAKE_MODULE_PATH}/checkModule.hs"
                     RESULT_VARIABLE COMMAND_RESULT