Skip to content

Commit 7b02da7

Browse files
committed
fix LIBRARY_IDENTIFIER family
1 parent fa93368 commit 7b02da7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/mulle-objc/objc-cmake/project/all/cmake/share/CreateLoaderIncObjC.cmake

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,16 @@ endif()
3636

3737

3838
if( CREATE_OBJC_LOADER_INC)
39-
if( NOT LIBRARY_IDENTIFIER)
40-
string( MAKE_C_IDENTIFIER "${LIBRARY_NAME}" LIBRARY_IDENTIFIER)
41-
endif()
42-
4339
include( StringCase)
4440

41+
if( NOT LIBRARY_IDENTIFIER)
42+
snakeCaseString( "${LIBRARY_NAME}" LIBRARY_IDENTIFIER)
43+
endif()
4544
if( NOT LIBRARY_UPCASE_IDENTIFIER)
46-
snakeCaseString( "${LIBRARY_IDENTIFIER}" LIBRARY_UPCASE_IDENTIFIER)
47-
string( TOUPPER "${LIBRARY_UPCASE_IDENTIFIER}" LIBRARY_UPCASE_IDENTIFIER)
45+
string( TOUPPER "${LIBRARY_IDENTIFIER}" LIBRARY_UPCASE_IDENTIFIER)
4846
endif()
4947
if( NOT LIBRARY_DOWNCASE_IDENTIFIER)
50-
snakeCaseString( "${LIBRARY_IDENTIFIER}" LIBRARY_DOWNCASE_IDENTIFIER)
51-
string( TOLOWER "${LIBRARY_DOWNCASE_IDENTIFIER}" LIBRARY_DOWNCASE_IDENTIFIER)
48+
string( TOLOWER "${LIBRARY_IDENTIFIER}" LIBRARY_DOWNCASE_IDENTIFIER)
5249
endif()
5350

5451
#

0 commit comments

Comments
 (0)