Commits

Anonymous committed 9999b99

Fixed the name of the header in CMakeLists.txt, and also fixed the DynaLoader.a
behaviours in perl's less than 5.10.0.

  • Participants
  • Parent commits 8975047
  • Branches conversion-to-cmake

Comments (0)

Files changed (1)

File src/wml_backend/p3_eperl/CMakeLists.txt

 )
 
 IF(perl_usedl STREQUAL "define")
-    # TODO : Temporary workaround for perl-5.10.0
-    # SET (perl_dla "${perl_archlib}/auto/DynaLoader/DynaLoader.a")
-    SET (perl_dla "")
+    # Workaround for perl-5.10.0
+    IF (perl_vers LESS 5.010)
+        SET (perl_dla "${perl_archlib}/auto/DynaLoader/DynaLoader.a")
+    ELSE(perl_vers LESS 5.010)
+        SET (perl_dla "")   
+    ENDIF(perl_vers LESS 5.010)
     SET (HAVE_PERL_DYNALOADER 1)
 ELSE(perl_usedl STREQUAL "define")
     SET (perl_dla "")
 )
 
 SET(SCRIPT "eperl_perl5_sm.pl")
-SET(HEADER "ieperl_perl5_sm.h")
+SET(HEADER "eperl_perl5_sm.h")
 ADD_CUSTOM_COMMAND(
     OUTPUT ${HEADER}
     COMMAND ${PATH_PERL}