Skip to content

Commit 97425dc

Browse files
埃博拉酱lawrinn
authored andcommitted
Use CMake generator expression instead of VS-specific $(ConfigurationName) to be compatible with Ninja and other generators.
1 parent 0c0fd88 commit 97425dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/CJUnitTestsPort/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2929

3030
IF(WIN32)
31-
LINK_DIRECTORIES(../framework/$(ConfigurationName))
31+
# Use CMake generator expression instead of VS-specific $(ConfigurationName)
32+
# to be compatible with Ninja and other generators.
33+
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../framework/$<CONFIG>)
3234
ENDIF()
3335
SET(MY_TARGET_LINK_LIBRARIES test_framework ${LIBRARY_NAME})
3436

0 commit comments

Comments
 (0)