disable static libraries with fpc cmake_pascal
authorkoda
Fri, 22 Mar 2013 10:34:50 +0100
branchcmake_pascal
changeset 8829 6940e86a7df6
parent 8827 f53dfd8e0432
child 8831 06562cd68897
disable static libraries with fpc
cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Fri Mar 22 10:33:35 2013 +0100
+++ b/cmake_modules/CMakePascalInformation.cmake	Fri Mar 22 10:34:50 2013 +0100
@@ -149,12 +149,11 @@
   SET(CMAKE_Ada_CREATE_SHARED_MODULE ${CMAKE_Ada_CREATE_SHARED_LIBRARY})
 ENDIF(NOT CMAKE_Ada_CREATE_SHARED_MODULE)
 
-# create an Ada static library
-IF(NOT CMAKE_Ada_CREATE_STATIC_LIBRARY)
-  SET(CMAKE_Ada_CREATE_STATIC_LIBRARY
-      "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
-      "<CMAKE_RANLIB> <TARGET> ")
-ENDIF(NOT CMAKE_Ada_CREATE_STATIC_LIBRARY)
+# create an Pascal static library (unsupported)
+IF(NOT CMAKE_Pascal_CREATE_STATIC_LIBRARY)
+  SET(CMAKE_Pascal_CREATE_STATIC_LIBRARY
+      "echo STATIC LIBRARIES ARE NOT SUPPORTED" "exit")
+ENDIF(NOT CMAKE_Pascal_CREATE_STATIC_LIBRARY)
 
 # compile a Pascal file into an object file
 if(NOT CMAKE_Pascal_COMPILE_OBJECT)