File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,13 @@ IF (NOT TARGET armadillo::armadillo)
3636 IF (TARGET armadillo)
3737 ADD_LIBRARY (armadillo::armadillo ALIAS armadillo)
3838 ELSEIF (Armadillo_FOUND)
39- IF (NOT ARMADILLO_INCLUDE_DIRS OR NOT ARMADILLO_LIBRARIES)
40- message (FATAL_ERROR "Armadillo_FOUND is true but ARMADILLO_INCLUDE_DIRS or ARMADILLO_LIBRARIES are not set." )
41- ENDIF ()
42- ADD_LIBRARY (armadillo::armadillo INTERFACE )
43- TARGET_INCLUDE_DIRECTORIES (armadillo::armadillo INTERFACE ${ARMADILLO_INCLUDE_DIRS} )
44- TARGET_LINK_LIBRARIES (armadillo::armadillo INTERFACE ${ARMADILLO_LIBRARIES} )
39+ ADD_LIBRARY (armadillo INTERFACE )
40+ TARGET_INCLUDE_DIRECTORIES (armadillo INTERFACE ${ARMADILLO_INCLUDE_DIRS} )
41+ TARGET_LINK_LIBRARIES (armadillo INTERFACE ${ARMADILLO_LIBRARIES} )
42+ ADD_LIBRARY (armadillo::armadillo ALIAS armadillo)
4543 ENDIF ()
4644ENDIF ()
4745IF (TARGET armadillo::armadillo)
48- IF (NOT ARMADILLO_INCLUDE_DIRS)
49- message (FATAL_ERROR "armadillo::armadillo is a target but ARMADILLO_INCLUDE_DIRS is not set." )
50- ENDIF ()
5146 LIST (APPEND carma_INCLUDE_DIRS ${ARMADILLO_INCLUDE_DIRS} )
5247ENDIF ()
5348
You can’t perform that action at this time.
0 commit comments