Skip to content

Commit f72c9ea

Browse files
committed
remove unneeded condition in endif( condition )
1 parent 7b9ee39 commit f72c9ea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/apps/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if( OJPH_ENABLE_TIFF_SUPPORT AND (NOT EMSCRIPTEN))
1212
message(WARNING "TIFF support has been requested but no path to the TIFF library "
1313
"has been specified; please configure with -DCMAKE_PREFIX_PATH=<TIFF library directory>, "
1414
"or disable TIFF support using -DOJPH_ENABLE_TIFF_SUPPORT=OFF.")
15-
endif( TIFF_FOUND )
15+
endif()
1616

1717
if(TIFF_FOUND)
1818
message(STATUS " TIFF_INCLUDE_DIR = ${TIFF_INCLUDE_DIR}")
@@ -21,7 +21,7 @@ if( OJPH_ENABLE_TIFF_SUPPORT AND (NOT EMSCRIPTEN))
2121
message(STATUS " TIFF_LIBRARIES = ${TIFF_LIBRARIES}")
2222
endif(TIFF_FOUND)
2323

24-
endif(OJPH_ENABLE_TIFF_SUPPORT AND (NOT EMSCRIPTEN))
24+
endif()
2525
############################################################
2626

2727
# Add OPENEXR library
@@ -49,12 +49,12 @@ if( OJPH_ENABLE_OPENEXR_SUPPORT )
4949
message(STATUS " found OpenEXR with Config")
5050
else(OpenEXR_FOUND_WITH_CONFIG)
5151
message(STATUS " found OpenEXR with FindModule")
52-
endif(OpenEXR_FOUND_WITH_CONFIG)
52+
endif()
5353
else(OpenEXR_FOUND)
5454
message(STATUS "OpenEXR support has been requested but no path to the OpenEXR or IlmBase library "
5555
"has been specified; please configure with -DCMAKE_PREFIX_PATH=<OpenEXR library directory>, "
5656
"or disable OpenEXR support using -DOJPH_ENABLE_OpenEXR_SUPPORT=OFF.")
57-
endif(OpenEXR_FOUND)
57+
endif()
5858

5959
if(IlmBase_FOUND)
6060
message(STATUS "IlmBase info:")
@@ -63,7 +63,7 @@ if( OJPH_ENABLE_OPENEXR_SUPPORT )
6363
message(STATUS " IlmBase_INCLUDE_DIRS = ${IlmBase_INCLUDE_DIRS}")
6464
message(STATUS " IlmBase_LIBRARY = ${IlmBase_LIBRARY}")
6565
message(STATUS " IlmBase_LIBRARIES = ${IlmBase_LIBRARIES}")
66-
endif(IlmBase_FOUND)
66+
endif()
6767

6868
if(OpenEXR_FOUND)
6969
message(STATUS "OpenEXR info:")
@@ -73,10 +73,10 @@ if( OJPH_ENABLE_OPENEXR_SUPPORT )
7373
message(STATUS " OpenEXR_INCLUDE_DIRS = ${OpenEXR_INCLUDE_DIRS}")
7474
message(STATUS " OpenEXR_LIBRARY = ${OpenEXR_LIBRARY}")
7575
message(STATUS " OpenEXR_LIBRARIES = ${OpenEXR_LIBRARIES}")
76-
endif(NOT OpenEXR_FOUND_WITH_CONFIG)
77-
endif(OpenEXR_FOUND)
76+
endif()
77+
endif()
7878

79-
endif(OJPH_ENABLE_OPENEXR_SUPPORT)
79+
endif()
8080
############################################################
8181

8282
if (EMSCRIPTEN)

0 commit comments

Comments
 (0)