cmake_modules/CMakePascalInformation.cmake
branchcmake_pascal
changeset 8823 65b430b6cd68
parent 8821 e85ff6e298b5
child 8829 6940e86a7df6
--- a/cmake_modules/CMakePascalInformation.cmake	Wed Mar 20 18:31:13 2013 +0100
+++ b/cmake_modules/CMakePascalInformation.cmake	Thu Mar 21 14:38:58 2013 +0100
@@ -134,12 +134,15 @@
     set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
 endif(NOT EXECUTABLE_OUTPUT_PATH)
 
-# create an Ada shared library
-IF(NOT CMAKE_Ada_CREATE_SHARED_LIBRARY)
-    SET(CMAKE_Ada_CREATE_SHARED_LIBRARY
-    "<CMAKE_Ada_COMPILER> <CMAKE_SHARED_LIBRARY_Ada_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_Ada_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>"
-    )
-ENDIF(NOT CMAKE_Ada_CREATE_SHARED_LIBRARY)
+# create a Pascal shared library
+if(NOT CMAKE_Pascal_CREATE_SHARED_LIBRARY)
+    if(WIN32)
+        set(CMAKE_Pascal_CREATE_SHARED_LIBRARY "${EXECUTABLE_OUTPUT_PATH}/ppas.bat")
+    else(WIN32)
+        set(CMAKE_Pascal_CREATE_SHARED_LIBRARY "${EXECUTABLE_OUTPUT_PATH}/ppas.sh")
+    endif(WIN32)
+# other expandable variables here are <CMAKE_Pascal_COMPILER> <CMAKE_SHARED_LIBRARY_Pascal_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Pascal_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG> <TARGET_SONAME> <TARGET> <OBJECTS> <LINK_LIBRARIES>
+endif(NOT CMAKE_Pascal_CREATE_SHARED_LIBRARY)
 
 # create an Ada shared module just copy the shared library rule
 IF(NOT CMAKE_Ada_CREATE_SHARED_MODULE)
@@ -183,7 +186,7 @@
     else(WIN32)
         set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.sh")
     endif(WIN32)
-# other expandable variables here are<CMAKE_Pascal_LINK_FLAGS> <LINK_FLAGS> <TARGET_BASE> <FLAGS> <LINK_LIBRARIES>
+# other expandable variables here are <CMAKE_Pascal_LINK_FLAGS> <LINK_FLAGS> <TARGET_BASE> <FLAGS> <LINK_LIBRARIES>
 endif(NOT CMAKE_Pascal_LINK_EXECUTABLE)
 
 if(CMAKE_Pascal_STANDARD_LIBRARIES_INIT)