Commit bf341444 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX #199] now works on internal build too

parent db6e8200
......@@ -153,12 +153,12 @@ ENDIF()
IF( NOT ${OW_EXTERNAL_MODULE} )
# if we build OW, we want the version header to be placed in core later on. We use the internal version header filename directly
SET( OW_VERSION_HEADER_FILENAME ${OW_INTERNAL_VERSION_HEADER_FILENAME} )
SET( OW_VERSION_HEADER_PREFIX "" )
SET( OW_VERSION_HEADER_PREFIX "W" )
ELSE()
# if this is for external use, the module might want to use its own version header
# if we build OW, we want the version header to be placed in core later on
SET( OW_VERSION_HEADER_FILENAME "WToolboxVersion.h" )
SET( OW_VERSION_HEADER_PREFIX "TOOLBOX" )
SET( OW_VERSION_HEADER_PREFIX "WTOOLBOX" )
ENDIF()
# the complete header filename:
......
......@@ -29,4 +29,4 @@
INCLUDE( OpenWalnutUtils.cmake )
GET_VERSION_STRING( OW_VERSION OW_API_VERSION )
FILE( WRITE ${HEADER_FILENAME} "// generated by CMake. Do not modify.\n#define W${PREFIX}_VERSION \"${OW_VERSION}\"\n#define W${PREFIX}_LIB_VERSION \"${OW_API_VERSION}\"\n" )
FILE( WRITE ${HEADER_FILENAME} "// generated by CMake. Do not modify.\n#define ${PREFIX}_VERSION \"${OW_VERSION}\"\n#define ${PREFIX}_LIB_VERSION \"${OW_API_VERSION}\"\n" )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment