Skip to content

Commit

Permalink
Fix compiler warning : -fPIC flag is only for gcc compiler, not on
Browse files Browse the repository at this point in the history
Windows
  • Loading branch information
Nicholas Yue committed Feb 10, 2017
1 parent fae0ca0 commit ad67dbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ IF ( BUILD_ALEMBIC_TOOLS )
SET ( NCACHE_ALEMBIC_SOURCE nCacheAlembic.cpp )
ENDIF ()

ADD_DEFINITIONS ( -fPIC )
IF (NOT WIN32)
ADD_DEFINITIONS ( -fPIC )
ENDIF ()

ADD_LIBRARY ( nCacheParser STATIC
XMLReader.cpp
Expand Down

0 comments on commit ad67dbd

Please sign in to comment.