File tree Expand file tree Collapse file tree 1 file changed +18
-24
lines changed
Expand file tree Collapse file tree 1 file changed +18
-24
lines changed Original file line number Diff line number Diff line change @@ -11,31 +11,25 @@ find_path(simplerasters_INCLUDE_DIR
1111 PATH_SUFFIXES simplerasters
1212)
1313
14- # Finally the library itself
15- find_library (simplerasters_LIBRARY
16- NAMES simplerasters
17- PATHS
18- /usr/lib
19- /usr/lib64
20- /usr/local/lib
21- "${CMAKE_PREFIX_PATH} /lib"
22- "${CMAKE_PREFIX_PATH} /Library/bin"
23- "${CMAKE_PREFIX_PATH} /Library/lib"
24- $ENV{LIBRARY_LIB}
25- $ENV{LIBRARY_BIN}
26- )
14+ if (WIN32 )
15+ find_path (simplerasters_LIBRARY
16+ NAMES simplerasters.dll
17+ PATHS
18+ $ENV{LIBRARY_LIB}
19+ $ENV{LIBRARY_BIN}
20+ )
21+ else ()
22+ # Finally the library itself
23+ find_library (simplerasters_LIBRARY
24+ NAMES simplerasters
25+ PATHS
26+ /usr/lib
27+ /usr/lib64
28+ /usr/local/lib
29+ "${CMAKE_PREFIX_PATH} /lib"
30+ )
31+ endif ()
2732
28- # if(NOT simplerasters_LIBRARY)
29- # find_path(simplerasters_LIBRARY
30- # NAMES simplerasters.dll
31- # PATHS
32- # "${CMAKE_PREFIX_PATH}/lib"
33- # "${CMAKE_PREFIX_PATH}/Library/lib"
34- # "${CMAKE_PREFIX_PATH}/Library/bin"
35- # $ENV{LIBRARY_LIB}
36- # $ENV{LIBRARY_BIN}
37- # )
38- # endif()
3933if (simplerasters_LIBRARY)
4034 message (STATUS "SimpleRasters installed. Found at: ${simplerasters_LIBRARY} . Include dir at: ${simplerasters_INCLUDE_DIR} " )
4135
You can’t perform that action at this time.
0 commit comments