mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: Used a Regex to workaround the colon project name issue for VS10.
This commit is contained in:
parent
1390dbf7fe
commit
c2e63b9d9d
1 changed files with 4 additions and 3 deletions
|
@ -64,9 +64,10 @@ ENDMACRO(NL_TARGET_DRIVER)
|
||||||
# Argument:
|
# Argument:
|
||||||
###
|
###
|
||||||
MACRO(NL_DEFAULT_PROPS name label)
|
MACRO(NL_DEFAULT_PROPS name label)
|
||||||
IF(NOT MSVC10)
|
# Note: This is just a workaround for a CMake bug generating VS10 files with a colon in the project name.
|
||||||
SET_TARGET_PROPERTIES(${name} PROPERTIES PROJECT_LABEL ${label})
|
# CMake Bug ID: http://www.cmake.org/Bug/view.php?id=11819
|
||||||
ENDIF(NOT MSVC10)
|
STRING(REGEX REPLACE "\\:" " -" proj_label ${label})
|
||||||
|
SET_TARGET_PROPERTIES(${name} PROPERTIES PROJECT_LABEL ${proj_label})
|
||||||
GET_TARGET_PROPERTY(type ${name} TYPE)
|
GET_TARGET_PROPERTY(type ${name} TYPE)
|
||||||
IF(${type} STREQUAL SHARED_LIBRARY)
|
IF(${type} STREQUAL SHARED_LIBRARY)
|
||||||
# Set versions only if target is a shared library
|
# Set versions only if target is a shared library
|
||||||
|
|
Loading…
Reference in a new issue