Skip to content

Commit 0bf4831

Browse files
committed
Only install module files, not config dir with IDE
- MSVS will install, e.g., `$<prefix>/include/Debug/json_file_module.mod` - We should strip the build config directory that IDEs like MSVS add when doing an installation
1 parent c1b75b0 commit 0bf4831

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ install ( TARGETS ${LIB_NAME} ${LIB_NAME}-static
386386
# Code to fix the dylib install name on Mac.
387387
include ( cmake/fixupInstallNameDir.cmake )
388388

389-
install ( DIRECTORY "${MODULE_DIR}/" DESTINATION "${INSTALL_MOD_DIR}" )
389+
install ( DIRECTORY "${MODULE_DIR}/" DESTINATION "${INSTALL_MOD_DIR}"
390+
FILES_MATCHING
391+
PATTERN "*.*"
392+
PATTERN "*/" EXCLUDE) # Don't get $<CONFIG> subdirectory when building with MSVS
390393

391394
#------------------------------------------
392395
# Add portable unistall command to makefile

0 commit comments

Comments
 (0)