Skip to content

Commit

Permalink
Fix issue with drive letter under windows
Browse files Browse the repository at this point in the history
The get_filename_component gets stuck under windows when finding the
parent directory for a drive letter. This basically reverts to using the
full path, which is more likely to be ok under windows

Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Nov 7, 2019
1 parent 8469582 commit fbd6c47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyIlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ function(PYILMBASE_EXTRACT_REL_SITEARCH varname pyver pyexe pysitearch)
get_filename_component(_nexedir ${_exedir} DIRECTORY)
string(FIND ${pysitearch} ${_nexedir} _findloc)
if (_nexedir STREQUAL _exedir)
message(FATAL_ERROR "Unable to get parent directory for ${_exedir}")
message(WARNING "Unable to get parent directory for ${_exedir}, using absolute python site arch folder ${pysitearch}")
set(_elen -1)
break()
else()
set(_exedir ${_nexedir})
endif()
Expand Down

0 comments on commit fbd6c47

Please sign in to comment.